Public Member Functions | |
virtual bool | areCompatibleForMerge (const MEDCouplingField *other) const |
virtual bool | areStrictlyCompatible (const MEDCouplingField *other) const |
virtual bool | areStrictlyCompatibleForMulDiv (const MEDCouplingField *other) const |
MEDCouplingFieldDouble * | buildMeasureField (bool isAbs) const |
MEDCouplingMesh * | buildSubMeshData (const int *start, const int *end, DataArrayInt *&di) const |
MEDCouplingMesh * | buildSubMeshDataRange (int begin, int end, int step, int &beginOut, int &endOut, int &stepOut, DataArrayInt *&di) const |
virtual void | checkConsistencyLight () const |
void | clearGaussLocalizations () |
DataArrayInt * | computeTupleIdsToSelectFromCellIds (const int *startCellIds, const int *endCellIds) const |
virtual void | copyTinyStringsFrom (const MEDCouplingField *other) |
void | getCellIdsHavingGaussLocalization (int locId, std::vector< int > &cellIds) const |
std::string | getDescription () const |
std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
const MEDCouplingFieldDiscretization * | getDiscretization () const |
MEDCouplingFieldDiscretization * | getDiscretization () |
MEDCouplingGaussLocalization & | getGaussLocalization (int locId) |
const MEDCouplingGaussLocalization & | getGaussLocalization (int locId) const |
int | getGaussLocalizationIdOfOneCell (int cellId) const |
int | getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const |
std::set< int > | getGaussLocalizationIdsOfOneType (INTERP_KERNEL::NormalizedCellType type) const |
std::size_t | getHeapMemorySizeWithoutChildren () const |
DataArrayDouble * | getLocalizationOfDiscr () const |
const MEDCoupling::MEDCouplingMesh * | getMesh () const |
MEDCoupling::MEDCouplingMesh * | getMesh () |
std::string | getName () const |
NatureOfField | getNature () const |
int | getNbOfGaussLocalization () const |
int | getNumberOfMeshPlacesExpected () const |
int | getNumberOfTuplesExpected () const |
int | getNumberOfTuplesExpectedRegardingCode (const std::vector< int > &code, const std::vector< const DataArrayInt * > &idsPerType) const |
TypeOfField | getTypeOfField () const |
virtual bool | isEqual (const MEDCouplingField *other, double meshPrec, double valsPrec) const |
virtual bool | isEqualIfNotWhy (const MEDCouplingField *other, double meshPrec, double valsPrec, std::string &reason) const |
virtual bool | isEqualWithoutConsideringStr (const MEDCouplingField *other, double meshPrec, double valsPrec) const |
virtual void | reprQuickOverview (std::ostream &stream) const =0 |
void | setDescription (const std::string &desc) |
void | setDiscretization (MEDCouplingFieldDiscretization *newDisc) |
void | setGaussLocalizationOnCells (const int *begin, const int *end, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) |
void | setGaussLocalizationOnType (INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) |
void | setMesh (const MEDCoupling::MEDCouplingMesh *mesh) |
void | setName (const std::string &name) |
virtual void | setNature (NatureOfField nat) |
void | updateTime () const |
Public Member Functions inherited from MEDCoupling::TimeLabel | |
void | declareAsNew () const |
std::size_t | getTimeOfThis () const |
TimeLabel & | operator= (const TimeLabel &other) |
Protected Member Functions | |
MEDCouplingField (TypeOfField type) | |
MEDCouplingField (const MEDCouplingField &other, bool deepCopy=true) | |
MEDCouplingField (MEDCouplingFieldDiscretization *type, NatureOfField nature=NoNature) | |
virtual | ~MEDCouplingField () |
Protected Member Functions inherited from MEDCoupling::RefCountObject | |
RefCountObject () | |
RefCountObject (const RefCountObject &other) | |
virtual | ~RefCountObject () |
Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly | |
RefCountObjectOnly () | |
RefCountObjectOnly (const RefCountObjectOnly &other) | |
virtual | ~RefCountObjectOnly () |
Protected Member Functions inherited from MEDCoupling::TimeLabel | |
void | forceTimeOfThis (const TimeLabel &other) const |
TimeLabel () | |
void | updateTimeWith (const TimeLabel &other) const |
virtual | ~TimeLabel () |
Protected Attributes | |
std::string | _desc |
const MEDCouplingMesh * | _mesh |
std::string | _name |
NatureOfField | _nature |
MCAuto < MEDCouplingFieldDiscretization > | _type |
Additional Inherited Members | |
Static Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
static std::size_t | GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs) |
|
protected |
|
protected |
References _mesh, _type, and MEDCoupling::RefCountObjectOnly::incrRef().
|
protected |
|
protectedvirtual |
References _mesh, and MEDCoupling::RefCountObjectOnly::decrRef().
|
virtual |
|
virtual |
This method states if 'this' and 'other' are compatibles each other before performing any treatment. This method is good for methods like : mergeFields. This method is not very demanding compared to areStrictlyCompatible that is better for operation on fields.
Reimplemented in MEDCoupling::MEDCouplingFieldDouble.
References _mesh, _nature, _type, and MEDCoupling::MEDCouplingMesh::areCompatibleForMerge().
Referenced by MEDCoupling::MEDCouplingFieldDouble::areCompatibleForMerge().
|
virtual |
This method is more strict than MEDCouplingField::areCompatibleForMerge method. This method is used for operation on fields to operate a first check before attempting operation.
Reimplemented in MEDCoupling::MEDCouplingFieldT< T >, MEDCoupling::MEDCouplingFieldT< double >, and MEDCoupling::MEDCouplingFieldT< int >.
References _mesh, _nature, and _type.
Referenced by MEDCoupling::MEDCouplingFieldDouble::areCompatibleForMeld(), and MEDCoupling::MEDCouplingFieldT< T >::areStrictlyCompatible().
|
virtual |
This method is less strict than MEDCouplingField::areStrictlyCompatible method. The difference is that the nature is not checked. This method is used for multiplication and division on fields to operate a first check before attempting operation.
Reimplemented in MEDCoupling::MEDCouplingFieldT< T >, MEDCoupling::MEDCouplingFieldT< double >, and MEDCoupling::MEDCouplingFieldT< int >.
Referenced by MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForDiv(), MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForMul(), and MEDCoupling::MEDCouplingFieldT< T >::areStrictlyCompatibleForMulDiv().
|
virtual |
Reimplemented in MEDCoupling::MEDCouplingFieldT< T >, MEDCoupling::MEDCouplingFieldT< double >, and MEDCoupling::MEDCouplingFieldT< int >.
References _desc, _mesh, _name, _nature, _type, MEDCoupling::MEDCouplingNatureOfField::GetRepr(), and MEDCoupling::MEDCouplingMesh::isEqualIfNotWhy().
Referenced by isEqual(), and MEDCoupling::MEDCouplingFieldT< T >::isEqualIfNotWhy().
|
virtual |
Checks if this and another MEDCouplingField are fully equal.
[in] | other | - the field to compare with this one. |
[in] | meshPrec | - precision used to compare node coordinates of the underlying mesh. |
[in] | valsPrec | - precision used to compare field values. |
true
if the two fields are equal, false
else. If | other is NULL. |
References isEqualIfNotWhy().
|
virtual |
Checks if this and another MEDCouplingField are equal. The textual information like names etc. is not considered.
[in] | other | - the field to compare with this one. |
[in] | meshPrec | - precision used to compare node coordinates of the underlying mesh. |
[in] | valsPrec | - precision used to compare field values. |
true
if the two fields are equal, false
else. If | other is NULL. |
If | the spatial discretization of this field is NULL. |
Reimplemented in MEDCoupling::MEDCouplingFieldT< T >, MEDCoupling::MEDCouplingFieldT< double >, and MEDCoupling::MEDCouplingFieldT< int >.
References _mesh, _nature, _type, and MEDCoupling::MEDCouplingMesh::isEqualWithoutConsideringStr().
Referenced by MEDCoupling::MEDCouplingFieldT< T >::isEqualWithoutConsideringStr().
|
virtual |
Copy tiny info (component names, name, description) but warning the underlying mesh is not renamed (for safety reason).
Reimplemented in MEDCoupling::MEDCouplingFieldT< T >, MEDCoupling::MEDCouplingFieldT< double >, and MEDCoupling::MEDCouplingFieldT< int >.
References _desc, _name, setDescription(), and setName().
Referenced by MEDCoupling::MEDCouplingFieldT< T >::copyTinyStringsFrom().
void MEDCouplingField::setMesh | ( | const MEDCoupling::MEDCouplingMesh * | mesh | ) |
Sets the underlying mesh of this field. For examples of field construction, see Building a field from scratch.
[in] | mesh | - the new underlying mesh. |
References _mesh, MEDCoupling::TimeLabel::declareAsNew(), MEDCoupling::RefCountObjectOnly::decrRef(), MEDCoupling::RefCountObjectOnly::incrRef(), and MEDCoupling::TimeLabel::updateTimeWith().
Referenced by MEDCoupling::MEDCouplingFieldDouble::AddFields(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildCellFieldOnRecurseWithoutOverlapWithoutGhost(), MEDCoupling::MEDCouplingAMRAttribute::buildCellFieldOnWithoutGhost(), MEDCoupling::MEDCouplingUMesh::buildDirectionVectorField(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), MEDCoupling::MEDCouplingStructuredMesh::buildOrthogonalField(), MEDCoupling::MEDCoupling1GTUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingCurveLinearMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildPartOrthogonalField(), MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::MEDCouplingFieldDouble::changeUnderlyingMesh(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDCouplingFieldDouble::CrossProductFields(), MEDCoupling::MEDCouplingFieldDouble::determinant(), MEDCoupling::MEDCouplingFieldDouble::deviator(), MEDCoupling::MEDCouplingFieldDouble::DivideFields(), MEDCoupling::MEDCouplingFieldDouble::DotFields(), MEDCoupling::MEDCouplingFieldDouble::doublyContractedProduct(), MEDCoupling::MEDCouplingFieldDouble::eigenValues(), MEDCoupling::MEDCouplingFieldDouble::eigenVectors(), MEDCoupling::MEDCouplingMesh::fillFromAnalytic(), MEDCoupling::MEDCouplingMesh::fillFromAnalyticCompo(), MEDCoupling::MEDCouplingMesh::fillFromAnalyticNamedCompo(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCoupling1GTUMesh::getMeasureField(), MEDCoupling::MEDCouplingCurveLinearMesh::getMeasureField(), MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCoupling1GTUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::MEDCouplingFieldDouble::inverse(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::magnitude(), MEDCoupling::MEDCouplingFieldDouble::MaxFields(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCoupling::MEDCouplingFieldDouble::MeldFields(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::MEDCouplingFieldDouble::mergeNodes(), MEDCoupling::MEDCouplingFieldDouble::mergeNodesCenter(), MEDCoupling::MEDCouplingFieldDouble::MinFields(), MEDCoupling::MEDCouplingFieldDouble::MultiplyFields(), MEDCoupling::MEDCouplingFieldDouble::negate(), MEDCoupling::ParaFIELD::ParaFIELD(), MEDCoupling::MEDCouplingFieldDouble::PowFields(), MEDCoupling::MEDCouplingRemapper::prepare(), MEDCoupling::ReadFieldsOnSameMesh(), MEDCoupling::MEDCouplingFieldDouble::renumberCells(), MEDCoupling::MEDCouplingFieldDouble::renumberNodes(), MEDCoupling::MEDCouplingFieldDouble::simplexize(), MEDCoupling::MEDCouplingFieldDouble::SubstractFields(), MEDCoupling::MEDCouplingFieldDouble::trace(), MEDCoupling::MEDCouplingFieldDouble::zipConnectivity(), and MEDCoupling::MEDCouplingFieldDouble::zipCoords().
const MEDCoupling::MEDCouplingMesh* MEDCoupling::MEDCouplingField::getMesh | ( | ) | const |
References _mesh.
Referenced by MEDCoupling::MEDCouplingFieldDouble::AddFields(), MEDCoupling::DisjointDEC::attachLocalField(), MEDCoupling::OverlapDEC::attachSourceLocalField(), MEDCoupling::OverlapDEC::attachTargetLocalField(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), MEDCoupling::MEDCouplingFieldDouble::cellToNodeDiscretization(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::copyTinyInfoFrom(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::copyTinyInfoFrom(), MEDCoupling::MEDCouplingFieldDouble::CrossProductFields(), MEDCoupling::MEDCouplingFieldDouble::determinant(), MEDCoupling::MEDCouplingFieldDouble::deviator(), MEDCoupling::MEDCouplingFieldDouble::DivideFields(), MEDCoupling::MEDCouplingFieldDouble::DotFields(), MEDCoupling::MEDCouplingFieldDouble::doublyContractedProduct(), MEDCoupling::MEDCouplingFieldDouble::eigenValues(), MEDCoupling::MEDCouplingFieldDouble::eigenVectors(), MEDCoupling::MEDCouplingFieldDouble::extractSlice3D(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::MEDCouplingFieldDouble::inverse(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::magnitude(), MEDCoupling::MEDCouplingFieldDouble::MaxFields(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCoupling::MEDCouplingFieldDouble::MeldFields(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::MEDCouplingFieldDouble::MinFields(), MEDCoupling::MEDCouplingFieldDouble::MultiplyFields(), MEDCoupling::MEDCouplingFieldDouble::negate(), MEDCoupling::MEDCouplingFieldDouble::nodeToCellDiscretization(), MEDCoupling::MEDCouplingFieldDouble::PowFields(), MEDCoupling::MEDCouplingRemapper::prepareEx(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldNoProfileSBT(), MEDCoupling::MEDCouplingFieldDouble::SubstractFields(), MEDCoupling::MEDCouplingFieldDouble::substractInPlaceDM(), MEDCoupling::MEDCouplingFieldDouble::trace(), MEDCoupling::MEDCouplingFieldDouble::voronoize(), MEDCoupling::WriteField(), MEDCoupling::WriteFieldUsingAlreadyWrittenMesh(), and MEDCoupling::MEDCouplingFieldDouble::WriteVTK().
MEDCoupling::MEDCouplingMesh* MEDCoupling::MEDCouplingField::getMesh | ( | ) |
References _mesh.
void MEDCoupling::MEDCouplingField::setName | ( | const std::string & | name | ) |
References _name.
Referenced by MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildCellFieldOnRecurseWithoutOverlapWithoutGhost(), MEDCoupling::MEDCouplingAMRAttribute::buildCellFieldOnWithoutGhost(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), copyTinyStringsFrom(), MEDCoupling::MEDCouplingFieldDouble::determinant(), MEDCoupling::MEDCouplingFieldDouble::deviator(), MEDCoupling::MEDCouplingFieldDouble::doublyContractedProduct(), MEDCoupling::MEDCouplingFieldDouble::eigenValues(), MEDCoupling::MEDCouplingFieldDouble::eigenVectors(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingCurveLinearMesh::getMeasureField(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::MEDCouplingFieldDouble::inverse(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::magnitude(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::ParaFIELD::ParaFIELD(), and MEDCoupling::MEDCouplingFieldDouble::trace().
std::string MEDCoupling::MEDCouplingField::getDescription | ( | ) | const |
void MEDCoupling::MEDCouplingField::setDescription | ( | const std::string & | desc | ) |
std::string MEDCoupling::MEDCouplingField::getName | ( | ) | const |
References _name.
Referenced by MEDCoupling::MEDCouplingFieldDouble::advancedRepr(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::checkCoherencyOfTinyInfo(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::copyTinyInfoFrom(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::copyTinyInfoFrom(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::MEDCouplingFieldTemplate::simpleRepr(), and MEDCoupling::MEDCouplingFieldDouble::WriteVTK().
TypeOfField MEDCouplingField::getTypeOfField | ( | ) | const |
Returns a type of spatial discretization of this field in terms of enum MEDCoupling::TypeOfField.
If | the geometric type is empty. |
References _type.
Referenced by MEDCoupling::MEDCouplingFieldDouble::cellToNodeDiscretization(), MEDCoupling::DisjointDEC::compareFieldAndMethod(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDCouplingFieldDouble::extractSlice3D(), MEDCoupling::MEDCouplingFieldDouble::nodeToCellDiscretization(), MEDCoupling::ParaFIELD::returnCumulativeGlobalNumbering(), MEDCoupling::ParaFIELD::returnGlobalNumbering(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldNoProfileSBT(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldProfile(), and MEDCoupling::MEDCouplingFieldDouble::WriteVTK().
NatureOfField MEDCouplingField::getNature | ( | ) | const |
Returns the nature of this field. This information is very important during interpolation process using MEDCoupling::MEDCouplingRemapper or MEDCoupling::InterpKernelDEC. In other context than the two mentioned above, this attribute is unimportant. This attribute is not stored in the MED file. For more information of the semantics and the influence of this attribute to the result of interpolation, see
References _nature.
Referenced by MEDCoupling::MEDCouplingFieldDouble::AddFields(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), MEDCoupling::MEDCouplingFieldDouble::determinant(), MEDCoupling::MEDCouplingFieldDouble::deviator(), MEDCoupling::MEDCouplingFieldDouble::doublyContractedProduct(), MEDCoupling::MEDCouplingFieldDouble::eigenValues(), MEDCoupling::MEDCouplingFieldDouble::eigenVectors(), MEDCoupling::MEDCouplingFieldDouble::inverse(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::magnitude(), MEDCoupling::MEDCouplingFieldDouble::MaxFields(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCoupling::MEDCouplingFieldDouble::MeldFields(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::MEDCouplingFieldDouble::MinFields(), MEDCoupling::MEDCouplingFieldDouble::negate(), MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDCouplingRemapper::reverseTransferField(), MEDCoupling::MEDCouplingFieldDouble::SubstractFields(), MEDCoupling::MEDCouplingFieldDouble::trace(), and MEDCoupling::MEDCouplingRemapper::transferField().
|
virtual |
Sets the nature of this field. This information is very important during interpolation process using MEDCoupling::MEDCouplingRemapper or MEDCoupling::InterpKernelDEC. In other context than the two mentioned above, this attribute is unimportant. This attribute is not stored in the MED file. For more information of the semantics and the influence of this attribute to the result of interpolation, see
[in] | nat | - the nature of this field. |
If | nat has an invalid value. |
References _nature, _type, and MEDCoupling::MEDCouplingNatureOfField::GetRepr().
Referenced by MEDCoupling::MEDCouplingRemapper::reverseTransferField(), MEDCoupling::DisjointDEC::setNature(), and MEDCoupling::MEDCouplingRemapper::transferField().
DataArrayDouble * MEDCouplingField::getLocalizationOfDiscr | ( | ) | const |
Returns coordinates of field location points that depend on spatial discretization of this field.
If | the spatial discretization of this field is NULL. |
If | the mesh is not set. |
MEDCouplingFieldDouble * MEDCouplingField::buildMeasureField | ( | bool | isAbs | ) | const |
Returns a new MEDCouplingFieldDouble containing volumes of cells of a dual mesh whose cells are constructed around field location points (getLocalizationOfDiscr()) of this field. (In case of a field on cells, the dual mesh coincides with the underlying mesh).
For 1D cells, the returned field contains lengths.
For 2D cells, the returned field contains areas.
For 3D cells, the returned field contains volumes.
[in] | isAbs | - if true , the computed cell volume does not reflect cell orientation, i.e. the volume is always positive. |
If | the mesh is not set. |
If | the spatial discretization of this field is NULL. |
If | the spatial discretization of this field is not well defined. |
Referenced by MEDCoupling::MEDCouplingFieldDouble::getWeightedAverageValue().
MEDCouplingMesh * MEDCouplingField::buildSubMeshData | ( | const int * | start, |
const int * | end, | ||
DataArrayInt *& | di | ||
) | const |
Returns a new MEDCouplingMesh constituted by some cells of the underlying mesh of this field, and returns ids of entities (nodes, cells, Gauss points) lying on the specified cells. The cells to include to the result mesh are specified by an array of cell ids. The new mesh shares the coordinates array with the underlying mesh.
[in] | start | - an array of cell ids to include to the result mesh. |
[in] | end | - specifies the end of the array start, so that the last value of start is end[ -1 ]. |
[out] | di | - a new instance of DataArrayInt holding the ids of entities (nodes, cells, Gauss points). The caller is to delete this array using decrRef() as it is no more needed. |
If | the spatial discretization of this field is NULL. |
If | the mesh is not set. |
MEDCouplingMesh * MEDCouplingField::buildSubMeshDataRange | ( | int | begin, |
int | end, | ||
int | step, | ||
int & | beginOut, | ||
int & | endOut, | ||
int & | stepOut, | ||
DataArrayInt *& | di | ||
) | const |
This method returns a submesh of 'mesh' instance constituting cell ids defined by a range given by the 3 following inputs begin, end and step.
[out] | beginOut | Valid only if di is NULL |
[out] | endOut | Valid only if di is NULL |
[out] | stepOut | Valid only if di is NULL |
[out] | di | is an array returned that specifies entity ids (nodes, cells, Gauss points... ) in array if no output range is foundable. |
DataArrayInt * MEDCouplingField::computeTupleIdsToSelectFromCellIds | ( | const int * | startCellIds, |
const int * | endCellIds | ||
) | const |
This method returns tuples ids implied by the mesh selection of the cell ids contained in array defined as an interval [start;end).
Referenced by MEDCoupling::MEDCouplingFieldDouble::extractSlice3D().
const MEDCouplingFieldDiscretization* MEDCoupling::MEDCouplingField::getDiscretization | ( | ) | const |
References _type.
Referenced by MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDCouplingRemapper::reverseTransferField(), and MEDCoupling::MEDCouplingRemapper::transferField().
MEDCouplingFieldDiscretization* MEDCoupling::MEDCouplingField::getDiscretization | ( | ) |
References _type.
void MEDCouplingField::setDiscretization | ( | MEDCouplingFieldDiscretization * | newDisc | ) |
References _type, MEDCoupling::TimeLabel::declareAsNew(), and MEDCoupling::RefCountObjectOnly::incrRef().
Referenced by MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::MEDCouplingFieldDouble::cellToNodeDiscretization(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), and MEDCoupling::MEDCouplingFieldDouble::nodeToCellDiscretization().
int MEDCouplingField::getNumberOfTuplesExpected | ( | ) | const |
Returns number of tuples expected regarding the spatial discretization of this field and number of entities in the underlying mesh. This method behaves exactly as MEDCouplingFieldDouble::getNumberOfTuples.
If | the spatial discretization of this field is NULL. |
If | the mesh is not set. |
Referenced by MEDCoupling::MEDCouplingRemapper::reverseTransfer().
int MEDCouplingField::getNumberOfMeshPlacesExpected | ( | ) | const |
void MEDCouplingField::setGaussLocalizationOnType | ( | INTERP_KERNEL::NormalizedCellType | type, |
const std::vector< double > & | refCoo, | ||
const std::vector< double > & | gsCoo, | ||
const std::vector< double > & | wg | ||
) |
Sets localization of Gauss points for a given geometric type of cell.
[in] | type | - the geometric type of cell for which the Gauss localization is set. |
[in] | refCoo | - coordinates of points of the reference cell. Size of this vector must be nbOfNodesPerCell * dimOfType . |
[in] | gsCoo | - coordinates of Gauss points on the reference cell. Size of this vector must be wg.size() * dimOfType . |
[in] | wg | - the weights of Gauss points. |
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
If | the mesh is not set. |
If | size of any vector do not match the type. |
void MEDCouplingField::setGaussLocalizationOnCells | ( | const int * | begin, |
const int * | end, | ||
const std::vector< double > & | refCoo, | ||
const std::vector< double > & | gsCoo, | ||
const std::vector< double > & | wg | ||
) |
Sets localization of Gauss points for given cells specified by their ids.
[in] | begin | - an array of cell ids of interest. |
[in] | end | - the end of begin, i.e. a pointer to its (last+1)-th element. |
[in] | refCoo | - coordinates of points of the reference cell. Size of this vector must be nbOfNodesPerCell * dimOfType . |
[in] | gsCoo | - coordinates of Gauss points on the reference cell. Size of this vector must be wg.size() * dimOfType . |
[in] | wg | - the weights of Gauss points. |
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
If | the mesh is not set. |
If | size of any vector do not match the type of cell # begin[0]. |
If | type of any cell in begin differs from that of cell # begin[0]. |
If | the range [begin,end) is empty. |
void MEDCouplingField::clearGaussLocalizations | ( | ) |
Clears data on Gauss points localization.
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
References _type.
MEDCouplingGaussLocalization & MEDCouplingField::getGaussLocalization | ( | int | locId | ) |
Returns a reference to the Gauss localization object by its id.
[in] | locId | - the id of the Gauss localization object of interest. It must be in range 0 <= locId < getNbOfGaussLocalization() . |
If | this field is not on Gauss points. |
If | locId is not within the valid range. |
If | the spatial discretization of this field is NULL. |
References _type.
int MEDCouplingField::getGaussLocalizationIdOfOneType | ( | INTERP_KERNEL::NormalizedCellType | type | ) | const |
Returns an id of the Gauss localization object corresponding to a given cell type.
[in] | type | - the cell type of interest. |
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
If | no Gauss localization object found for the given cell type. |
If | more than one Gauss localization object found for the given cell type. |
References _type.
std::set< int > MEDCouplingField::getGaussLocalizationIdsOfOneType | ( | INTERP_KERNEL::NormalizedCellType | type | ) | const |
Returns ids of Gauss localization objects corresponding to a given cell type.
[in] | type | - the cell type of interest. |
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL |
References _type.
int MEDCouplingField::getNbOfGaussLocalization | ( | ) | const |
Returns number of Gauss localization objects available. Implicitly all ids in [0,getNbOfGaussLocalization()) are valid Gauss localization ids.
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
References _type.
int MEDCouplingField::getGaussLocalizationIdOfOneCell | ( | int | cellId | ) | const |
Returns an id of the Gauss localization object corresponding to a type of a given cell.
[in] | cellId | - an id of the cell of interest. |
If | this field is not on Gauss points. |
If | the spatial discretization of this field is NULL. |
If | no Gauss localization object found for the given cell. |
References _type.
void MEDCouplingField::getCellIdsHavingGaussLocalization | ( | int | locId, |
std::vector< int > & | cellIds | ||
) | const |
Returns ids of cells that share the same Gauss localization given by its id.
[in] | locId | - the id of the Gauss localization object of interest. It must be in range 0 <= locId < getNbOfGaussLocalization() . |
[in,out] | cellIds | - a vector returning ids of found cells. It is cleared before filling in. It remains empty if no cells found. |
If | this field is not on Gauss points. |
If | locId is not within the valid range. |
If | the spatial discretization of this field is NULL. |
References _type.
const MEDCouplingGaussLocalization & MEDCouplingField::getGaussLocalization | ( | int | locId | ) | const |
Returns a reference to the Gauss localization object by its id.
[in] | locId | - the id of the Gauss localization object of interest. It must be in range 0 <= locId < getNbOfGaussLocalization() . |
If | this field is not on Gauss points. |
If | locId is not within the valid range. |
If | the spatial discretization of this field is NULL. |
References _type.
|
virtual |
This method should be called on high level classes as Field or Mesh to take into acount modifications done in aggregates objects.
Implements MEDCoupling::TimeLabel.
Reimplemented in MEDCoupling::MEDCouplingFieldDouble.
References _mesh, _type, and MEDCoupling::TimeLabel::updateTimeWith().
Referenced by MEDCoupling::MEDCouplingFieldDouble::updateTime().
|
virtual |
Implements MEDCoupling::BigMemoryObject.
Reimplemented in MEDCoupling::MEDCouplingFieldDouble.
Referenced by MEDCoupling::MEDCouplingFieldDouble::getHeapMemorySizeWithoutChildren().
|
virtual |
Implements MEDCoupling::BigMemoryObject.
Reimplemented in MEDCoupling::MEDCouplingFieldDouble.
Referenced by MEDCoupling::MEDCouplingFieldDouble::getDirectChildrenWithNull().
int MEDCouplingField::getNumberOfTuplesExpectedRegardingCode | ( | const std::vector< int > & | code, |
const std::vector< const DataArrayInt * > & | idsPerType | ||
) | const |
This method computes the number of tuples a DataArrayDouble instance should have to build a correct MEDCouplingFieldDouble instance starting from a submesh of a virtual mesh on which a substraction per type had been applied regarding the spatial discretization in this.
For spatial discretization not equal to ON_GAUSS_NE this method will make the hypothesis that any positive entity id in code idsPerType is valid. So in those cases attribute _mesh of this is ignored.
For spatial discretization equal to ON_GAUSS_NE _mesh attribute will be taken into account.
The input code is those implemented in MEDCouplingUMesh::splitProfilePerType.
[in] | code | - a code with format described above. |
[in] | idsPerType | - a list of subparts |
If | this has no spatial discretization set. |
If | input code point to invalid zones in spatial discretization. |
If | spatial discretization in this requires a mesh and those mesh is invalid (null,...) |
References _type, and MEDCoupling::MEDCouplingFieldDiscretization::getNumberOfTuplesExpectedRegardingCode().
Referenced by MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldProfile().
|
pure virtual |
|
protected |
Referenced by copyTinyStringsFrom(), MEDCoupling::MEDCouplingFieldTemplate::finishUnserialization(), MEDCoupling::MEDCouplingFieldDouble::finishUnserialization(), getHeapMemorySizeWithoutChildren(), getName(), MEDCoupling::MEDCouplingFieldTemplate::getTinySerializationStrInformation(), MEDCoupling::MEDCouplingFieldDouble::getTinySerializationStrInformation(), isEqualIfNotWhy(), MEDCoupling::MEDCouplingFieldTemplate::reprQuickOverview(), and setName().
|
protected |
Referenced by copyTinyStringsFrom(), MEDCoupling::MEDCouplingFieldTemplate::finishUnserialization(), MEDCoupling::MEDCouplingFieldDouble::finishUnserialization(), getDescription(), getHeapMemorySizeWithoutChildren(), MEDCoupling::MEDCouplingFieldTemplate::getTinySerializationStrInformation(), MEDCoupling::MEDCouplingFieldDouble::getTinySerializationStrInformation(), isEqualIfNotWhy(), and setDescription().
|
protected |
Referenced by areCompatibleForMerge(), areStrictlyCompatible(), MEDCoupling::MEDCouplingFieldTemplate::finishUnserialization(), MEDCoupling::MEDCouplingFieldDouble::finishUnserialization(), getNature(), MEDCoupling::MEDCouplingFieldTemplate::getTinySerializationIntInformation(), MEDCoupling::MEDCouplingFieldDouble::getTinySerializationIntInformation(), isEqualIfNotWhy(), isEqualWithoutConsideringStr(), MEDCoupling::MEDCouplingFieldDouble::operator*=(), MEDCoupling::MEDCouplingFieldDouble::operator/=(), MEDCoupling::MEDCouplingFieldDouble::operator^=(), MEDCoupling::MEDCouplingFieldTemplate::reprQuickOverview(), setNature(), and MEDCoupling::MEDCouplingFieldTemplate::simpleRepr().
|
protected |
Referenced by MEDCoupling::MEDCouplingFieldDouble::advancedRepr(), MEDCoupling::MEDCouplingFieldDouble::applyFunc(), areCompatibleForMerge(), areStrictlyCompatible(), areStrictlyCompatibleForMulDiv(), buildMeasureField(), buildSubMeshData(), buildSubMeshDataRange(), MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::MEDCouplingFieldDouble::changeUnderlyingMesh(), checkConsistencyLight(), MEDCoupling::MEDCouplingFieldTemplate::checkConsistencyLight(), computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalytic(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalyticCompo(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalyticNamedCompo(), getDirectChildrenWithNull(), MEDCoupling::MEDCouplingFieldDouble::getIJK(), getLocalizationOfDiscr(), getMesh(), getNumberOfMeshPlacesExpected(), MEDCoupling::MEDCouplingFieldDouble::getNumberOfTuples(), getNumberOfTuplesExpected(), MEDCoupling::MEDCouplingFieldDouble::getValueOn(), MEDCoupling::MEDCouplingFieldDouble::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDouble::getValueOnPos(), MEDCoupling::MEDCouplingFieldDouble::integral(), isEqualIfNotWhy(), isEqualWithoutConsideringStr(), MEDCouplingField(), MEDCoupling::MEDCouplingFieldDouble::mergeNodes(), MEDCoupling::MEDCouplingFieldDouble::mergeNodesCenter(), MEDCoupling::MEDCouplingFieldDouble::normL1(), MEDCoupling::MEDCouplingFieldDouble::normL2(), MEDCoupling::MEDCouplingFieldDouble::operator=(), MEDCoupling::MEDCouplingFieldDouble::renumberCells(), MEDCoupling::MEDCouplingFieldDouble::renumberCellsWithoutMesh(), MEDCoupling::MEDCouplingFieldDouble::renumberNodes(), MEDCoupling::MEDCouplingFieldTemplate::reprQuickOverview(), setGaussLocalizationOnCells(), setGaussLocalizationOnType(), setMesh(), MEDCoupling::MEDCouplingFieldTemplate::simpleRepr(), MEDCoupling::MEDCouplingFieldDouble::simplexize(), MEDCoupling::MEDCouplingFieldDouble::synchronizeTimeWithSupport(), updateTime(), MEDCoupling::MEDCouplingFieldDouble::zipConnectivity(), MEDCoupling::MEDCouplingFieldDouble::zipCoords(), and ~MEDCouplingField().
|
protected |
Referenced by MEDCoupling::MEDCouplingFieldDouble::AddFields(), MEDCoupling::MEDCouplingFieldDouble::advancedRepr(), MEDCoupling::MEDCouplingFieldDouble::applyFunc(), areCompatibleForMerge(), areStrictlyCompatible(), areStrictlyCompatibleForMulDiv(), buildMeasureField(), MEDCoupling::MEDCouplingFieldDouble::buildNewTimeReprFromThis(), buildSubMeshData(), buildSubMeshDataRange(), MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), checkConsistencyLight(), MEDCoupling::MEDCouplingFieldDouble::checkForUnserialization(), clearGaussLocalizations(), computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDouble::computeVectorFieldCyl(), MEDCoupling::MEDCouplingFieldDouble::CrossProductFields(), MEDCoupling::MEDCouplingFieldDouble::determinant(), MEDCoupling::MEDCouplingFieldDouble::deviator(), MEDCoupling::MEDCouplingFieldDouble::DivideFields(), MEDCoupling::MEDCouplingFieldDouble::DotFields(), MEDCoupling::MEDCouplingFieldDouble::doublyContractedProduct(), MEDCoupling::MEDCouplingFieldDouble::eigenValues(), MEDCoupling::MEDCouplingFieldDouble::eigenVectors(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalytic(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalyticCompo(), MEDCoupling::MEDCouplingFieldDouble::fillFromAnalyticNamedCompo(), MEDCoupling::MEDCouplingFieldTemplate::finishUnserialization(), MEDCoupling::MEDCouplingFieldDouble::finishUnserialization(), getCellIdsHavingGaussLocalization(), getDirectChildrenWithNull(), getDiscretization(), getGaussLocalization(), getGaussLocalizationIdOfOneCell(), getGaussLocalizationIdOfOneType(), getGaussLocalizationIdsOfOneType(), MEDCoupling::MEDCouplingFieldDouble::getIJK(), getLocalizationOfDiscr(), getNbOfGaussLocalization(), getNumberOfMeshPlacesExpected(), MEDCoupling::MEDCouplingFieldDouble::getNumberOfTuples(), getNumberOfTuplesExpected(), getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldTemplate::getTinySerializationDbleInformation(), MEDCoupling::MEDCouplingFieldDouble::getTinySerializationDbleInformation(), MEDCoupling::MEDCouplingFieldTemplate::getTinySerializationIntInformation(), MEDCoupling::MEDCouplingFieldDouble::getTinySerializationIntInformation(), getTypeOfField(), MEDCoupling::MEDCouplingFieldDouble::getValueOn(), MEDCoupling::MEDCouplingFieldDouble::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDouble::getValueOnPos(), MEDCoupling::MEDCouplingFieldDouble::integral(), MEDCoupling::MEDCouplingFieldDouble::inverse(), isEqualIfNotWhy(), isEqualWithoutConsideringStr(), MEDCoupling::MEDCouplingFieldDouble::keepSelectedComponents(), MEDCoupling::MEDCouplingFieldDouble::magnitude(), MEDCoupling::MEDCouplingFieldDouble::MaxFields(), MEDCoupling::MEDCouplingFieldDouble::maxPerTuple(), MEDCouplingField(), MEDCoupling::MEDCouplingFieldDouble::MeldFields(), MEDCoupling::MEDCouplingFieldDouble::MergeFields(), MEDCoupling::MEDCouplingFieldDouble::mergeNodes(), MEDCoupling::MEDCouplingFieldDouble::mergeNodesCenter(), MEDCoupling::MEDCouplingFieldDouble::MinFields(), MEDCoupling::MEDCouplingFieldDouble::MultiplyFields(), MEDCoupling::MEDCouplingFieldDouble::negate(), MEDCoupling::MEDCouplingFieldDouble::normL1(), MEDCoupling::MEDCouplingFieldDouble::normL2(), MEDCoupling::MEDCouplingFieldDouble::operator=(), MEDCoupling::MEDCouplingFieldDouble::PowFields(), MEDCoupling::MEDCouplingFieldDouble::renumberCellsWithoutMesh(), MEDCoupling::MEDCouplingFieldDouble::renumberNodesWithoutMesh(), MEDCoupling::MEDCouplingFieldTemplate::reprQuickOverview(), MEDCoupling::MEDCouplingFieldTemplate::resizeForUnserialization(), MEDCoupling::MEDCouplingFieldDouble::resizeForUnserialization(), MEDCoupling::MEDCouplingFieldTemplate::serialize(), MEDCoupling::MEDCouplingFieldDouble::serialize(), setDiscretization(), setGaussLocalizationOnCells(), setGaussLocalizationOnType(), setNature(), MEDCoupling::MEDCouplingFieldTemplate::simpleRepr(), MEDCoupling::MEDCouplingFieldDouble::simplexize(), MEDCoupling::MEDCouplingFieldDouble::SubstractFields(), MEDCoupling::MEDCouplingFieldDouble::trace(), updateTime(), MEDCoupling::MEDCouplingFieldDouble::zipConnectivity(), and MEDCoupling::MEDCouplingFieldDouble::zipCoords().