XResult

Inherited from NItem,

Inherited by NULL

Friend class NULL

Description

XResult是一种封装了离散网格上的结果数据的结果基类,作为结果分量(XResultComponent)的容器使用,常用基础类型分为标量结果(包含一个基础分量如温度结果)、矢量结果(包含3个基础分量如位移结果)和张量结果(包含6个基础分量如应力、应变结果)。

结果数据对象属性包含所属分析步、子步、结果位置、基础自由度、源文件序号、参考坐标系ID、参考结果ID、结果层ID(对杆梁结果或板壳结果有效)以及主结果ID。

其中:

区分结果对象的维度包含结果位置、局部坐标系、杆梁层次、板壳层次,不同的插值方法和磨平方法则须重新计算计算数据,

Members

Public interface


static ResultComponentManager * _compMgr

结果分量管理器

ResultHeader m_oHeader

结果属性块

const XResultSubstep * m_pSubstep

结果所属子步

vector<XResultComponent*> m_pComponents

结果分量数组

vector<XResult*> m_pShellLayers

板壳结果层数组

vector<XResult*> m_pBeamLayers

杆梁结果层数组

vector<XResult*> m_pLocalCsys

局部坐标系结果数组

XResult * m_pCurShellLayer

当前板壳结果层

XResult * m_pCurBeamLayer

当前杆梁结果层


XResult(ulong id, int type)

void clear()

~XResult()

XResult & addComponent(TypeID compType)

XResult & operator « (TypeID compType)

XResultComponent * getComponentByType(TypeID t)

XResultComponent * getComponent(const char * compName)

const char * getLabel(int component)

int getDoF() const

TypeID getLocation() const

void setLocation(TypeID loc)

ulong getLayerID() const

void setLayerID(int lid)

ulong getCoordSysID()

void setCoordSysID(ulong cid)

void setFlag(ResultStatus r, bool b)

bool isVirtual() const

void setReference(ulong id)

ulong getReference() const

virtual bool buildDerivedComponent(TypeID t)

ErrorCode read(H5IO* io, H5Obj * grp)

void write(H5IO * io, H5Obj * grp)

ResultHeader & getHeader()

const ResultHeader & getHeader() const

int getComponentIndex(TypeID t) const

int getComponentIndexByName(const char * label) const

void setStep(int iMainID, int iSubID)

float * getComponentData(int component)

const float * getComponentData(int component) const

float getNodeResultValue(const XNode * n, int component) const

float getElementResultValue(const XElement * n, int component) const

float getElementNodeResultValue(const XElement * n, int nodeIndex, const int * elemNodeIndexArray, int component) const

int getComponentCount() const

void addBeamLayer(XResult * rlt)

void addShellLayer(XResult * rlt)

void addLocalCSResult(XResult * rlt)

void allocData(int component, int count)

bool loadData(H5IO * io, H5Obj * grp,int component)

void dumpData(H5IO * io, H5Obj * grp,int component)

bool isIdentical(XResult * rlt) const

bool isIdentical(int type, const char * name, int loc) const

bool isChief() const

bool isImported() const

bool isLoaded(int comp) const

XResult* getLCSResult(ulong cid)

int getLCSResultCount() const

XResult* getLCSResultByIndex(int idx)

XResult* getBeamLayer(ulong beamLayerID)

const XResult * getBeamLayer(ulong beamLayerID) const

int getBeamLayerCount() const

XResult* getBeamLayerByIndex(int idx)

XResult* getShellLayerByIndex(int idx)

XResult* getShellLayer(ulong shellLayerID)

const XResult * getShellLayer(ulong shellLayerID) const

int getShellLayerCount() const

XResult * getLayer(ulong layerID)

XResult* getCurBeamLayer() const

XResult* getCurShellLayer() const

void setCurrentBeamLayer(ulong beamLayerID)

void setCurrentShellLayer(ulong shellLayerID)

const XResultComponent * getComponent(int cp) const

XResultComponent * getComponent(int cp)

void updateComponentExtrem(int cp, XModel * mdl, ResultIndexMap * rimap)

const XResultSubstep * getSubstep() const

void setSubstep(const XResultSubstep * ss)