This sections groups together the basic operations that describe access to all the elements constitutive of the description of the field :
Some of these items are compulsory because they are essential to the field in order to define its structure or to be identified inside a MED file during the write process. The other ones are there for additional information and can be overlooked if not necessary.
When creating a field by reading a file, all the parameters are set according to the file data and can be consulted via the get methods. When creating a file from scratch, the name and number of components are set by the constructor, but the other items have to be set via the setXXX methods.
void MEDMEM::FIELD_::setName | ( | const string | Name | ) | [inherited] |
Sets FIELD name. The length should not exceed MED_TAILLE_NOM as defined in Med (i.e. 32 characters).
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), MEDMEM::MESH::getVolume(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
string MEDMEM::FIELD_::getName | ( | ) | const [inherited] |
Gets FIELD name.
References MEDMEM::FIELD_::_name.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::norm2(), MEDMEM::FIELD< T, INTERLACING_TAG >::normMax(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
void MEDMEM::FIELD_::setDescription | ( | const string | Description | ) | [inherited] |
Sets FIELD description. The length should not exceed MED_TAILLE_DESC as defined in Med (i.e. 200 characters).
References MEDMEM::FIELD_::_description.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), and MEDMEM::MESH::getVolume().
string MEDMEM::FIELD_::getDescription | ( | ) | const [inherited] |
Gets FIELD description.
References MEDMEM::FIELD_::_description.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), and MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field().
void MEDMEM::FIELD_::setNumberOfComponents | ( | const int | NumberOfComponents | ) | [inherited] |
Sets FIELD number of components.
References MEDMEM::FIELD_::_componentsDescriptions, MEDMEM::FIELD_::_componentsNames, MEDMEM::FIELD_::_componentsTypes, MEDMEM::FIELD_::_componentsUnits, MEDMEM::FIELD_::_MEDComponentsUnits, and MEDMEM::FIELD_::_numberOfComponents.
int MEDMEM::FIELD_::getNumberOfComponents | ( | ) | const [inherited] |
Gets FIELD number of components.
References MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::add(), MEDMEM::FIELD< T, INTERLACING_TAG >::addDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::applyFunc(), MEDMEM::FIELD< T, INTERLACING_TAG >::applyLin(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::div(), MEDMEM::FIELD< T, INTERLACING_TAG >::divDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::mul(), MEDMEM::FIELD< T, INTERLACING_TAG >::mulDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::norm2(), MEDMEM::FIELD< T, INTERLACING_TAG >::normL1(), MEDMEM::FIELD< T, INTERLACING_TAG >::normL2(), MEDMEM::FIELD< T, INTERLACING_TAG >::normMax(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator*(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator*=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator+(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator+=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator/(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator/=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator=(), MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct(), MEDMEM::FIELD< T, INTERLACING_TAG >::sub(), and MEDMEM::FIELD< T, INTERLACING_TAG >::subDeep().
void MEDMEM::FIELD_::setNumberOfValues | ( | const int | NumberOfValues | ) | [inherited] |
Sets FIELD number of values.
It must be the same than in the associated SUPPORT object.
References MEDMEM::FIELD_::_numberOfValues.
int MEDMEM::FIELD_::getNumberOfValues | ( | ) | const [inherited] |
Gets FIELD number of value.
References MEDMEM::FIELD_::_numberOfValues.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::applyFunc(), MEDMEM::FIELD< T, INTERLACING_TAG >::applyLin(), MEDMEM::FIELD< T, INTERLACING_TAG >::norm2(), MEDMEM::FIELD< T, INTERLACING_TAG >::normL1(), MEDMEM::FIELD< T, INTERLACING_TAG >::normL2(), MEDMEM::FIELD< T, INTERLACING_TAG >::normMax(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator*=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator+=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator/=(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator=(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
void MEDMEM::FIELD_::setComponentsNames | ( | const string * | ComponentsNames | ) | [inherited] |
Sets FIELD components names.
Duplicates the ComponentsNames string array to put components names in FIELD. ComponentsNames size must be equal to number of components.
References MEDMEM::FIELD_::_componentsNames, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
void MEDMEM::FIELD_::setComponentName | ( | int | i, | |
const string | ComponentName | |||
) | [inherited] |
References MEDMEM::FIELD_::_componentsNames, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), and MEDMEM::MESH::getVolume().
const string * MEDMEM::FIELD_::getComponentsNames | ( | ) | const [inherited] |
Gets a reference to the string array which contain the components names.
This Array size is equal to number of components
References MEDMEM::FIELD_::_componentsNames.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
string MEDMEM::FIELD_::getComponentName | ( | int | i | ) | const [inherited] |
References MEDMEM::FIELD_::_componentsNames, and MEDMEM::FIELD_::_numberOfComponents.
void MEDMEM::FIELD_::setComponentsDescriptions | ( | const string * | ComponentsDescriptions | ) | [inherited] |
Sets FIELD components descriptions.
Duplicates the ComponentsDescriptions string array to put components descriptions in FIELD. ComponentsDescriptions size must be equal to number of components.
References MEDMEM::FIELD_::_componentsDescriptions, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
void MEDMEM::FIELD_::setComponentDescription | ( | int | i, | |
const string | ComponentDescription | |||
) | [inherited] |
References MEDMEM::FIELD_::_componentsDescriptions, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), and MEDMEM::MESH::getVolume().
const string * MEDMEM::FIELD_::getComponentsDescriptions | ( | ) | const [inherited] |
Gets a reference to the string array which contain the components descriptions.
This Array size is equal to number of components
References MEDMEM::FIELD_::_componentsDescriptions.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
string MEDMEM::FIELD_::getComponentDescription | ( | int | i | ) | const [inherited] |
void MEDMEM::FIELD_::setComponentsUnits | ( | const UNIT * | ComponentsUnits | ) | [inherited] |
References MEDMEM::FIELD_::_componentsUnits, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
const UNIT * MEDMEM::FIELD_::getComponentsUnits | ( | ) | const [inherited] |
References MEDMEM::FIELD_::_componentsUnits.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
const UNIT * MEDMEM::FIELD_::getComponentUnit | ( | int | i | ) | const [inherited] |
References MEDMEM::FIELD_::_componentsUnits, and MEDMEM::FIELD_::_numberOfComponents.
void MEDMEM::FIELD_::setMEDComponentsUnits | ( | const string * | MEDComponentsUnits | ) | [inherited] |
Sets FIELD components unit.
Duplicates the MEDComponentsUnits string array to put components units in FIELD. MEDComponentsUnits size must be equal to number of components.
References MEDMEM::FIELD_::_MEDComponentsUnits, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
void MEDMEM::FIELD_::setMEDComponentUnit | ( | int | i, | |
const string | MEDComponentUnit | |||
) | [inherited] |
References MEDMEM::FIELD_::_MEDComponentsUnits, and MEDMEM::FIELD_::_numberOfComponents.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), and MEDMEM::MESH::getVolume().
const string * MEDMEM::FIELD_::getMEDComponentsUnits | ( | ) | const [inherited] |
Gets a reference to the string array which contain the components units.
This array size is equal to number of components
References MEDMEM::FIELD_::_MEDComponentsUnits.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::operator-().
string MEDMEM::FIELD_::getMEDComponentUnit | ( | int | i | ) | const [inherited] |
void MEDMEM::FIELD_::setIterationNumber | ( | int | IterationNumber | ) | [inherited] |
Sets the iteration number where FIELD has been calculated.
References MEDMEM::FIELD_::_iterationNumber.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), MEDMEM::MESH::getVolume(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
int MEDMEM::FIELD_::getIterationNumber | ( | ) | const [inherited] |
Gets the iteration number where FIELD has been calculated.
References MEDMEM::FIELD_::_iterationNumber.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
void MEDMEM::FIELD_::setTime | ( | double | Time | ) | [inherited] |
Sets the time when FIELD has been calculated.
References MEDMEM::FIELD_::_time.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), MEDMEM::MESH::getVolume(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
double MEDMEM::FIELD_::getTime | ( | ) | const [inherited] |
Gets the time when FIELD has been calculated.
References MEDMEM::FIELD_::_time.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
void MEDMEM::FIELD_::setOrderNumber | ( | int | OrderNumber | ) | [inherited] |
Sets the order number where FIELD has been calculated.
It corresponds to internal iteration during one time step.
References MEDMEM::FIELD_::_orderNumber.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::MESH::getArea(), MEDMEM::MESH::getBarycenter(), MEDMEM::MESH::getNormal(), MEDMEM::MESH::getVolume(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
int MEDMEM::FIELD_::getOrderNumber | ( | ) | const [inherited] |
Gets the order number where FIELD has been calculated.
References MEDMEM::FIELD_::_orderNumber.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), and MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct().
const SUPPORT * MEDMEM::FIELD_::getSupport | ( | ) | const [inherited] |
Gets a reference to the SUPPORT object associated to FIELD.
References MEDMEM::FIELD_::_support.
Referenced by MEDMEM::FIELD_::_getFieldSize(), MEDMEM::FIELD< T, INTERLACING_TAG >::add(), MEDMEM::FIELD< T, INTERLACING_TAG >::addDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD< T, INTERLACING_TAG >::div(), MEDMEM::FIELD< T, INTERLACING_TAG >::divDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::mul(), MEDMEM::FIELD< T, INTERLACING_TAG >::mulDeep(), MEDMEM::FIELD< T, INTERLACING_TAG >::normL2(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator*(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator+(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator-(), MEDMEM::FIELD< T, INTERLACING_TAG >::operator/(), MEDMEM::FIELD< T, INTERLACING_TAG >::scalarProduct(), MEDMEM::FIELD< T, INTERLACING_TAG >::sub(), and MEDMEM::FIELD< T, INTERLACING_TAG >::subDeep().
void MEDMEM::FIELD_::setSupport | ( | const SUPPORT * | support | ) | [inherited] |
Sets the reference to the SUPPORT object associated to FIELD.
Reference is not duplicate, so it must not be deleted.
References MEDMEM::FIELD_::_support, MEDMEM::SUPPORT::addReference(), and MEDMEM::SUPPORT::removeReference().
MED_EN::med_type_champ MEDMEM::FIELD_::getValueType | ( | ) | const [inherited] |
Gets the FIELD med value type (MED_INT32 or MED_REEL64).
References MEDMEM::FIELD_::_valueType.
MED_EN::medModeSwitch MEDMEM::FIELD_::getInterlacingType | ( | ) | const [inherited] |
Gets the FIELD med interlacing type (MED_FULL_INTERLACE or MED_NO_INTERLACE).
References MEDMEM::FIELD_::_interlacingType.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::normL1(), and MEDMEM::FIELD< T, INTERLACING_TAG >::normL2().