#include <MEDMEM_Field.hxx>

Public Types | |
| typedef void(* | myFuncType )(const double *, T *) |
| typedef void(* | myFuncType2 )(const T *, T *) |
Public Member Functions | |
| FIELD () | |
| FIELD (const FIELD &m) | |
| FIELD (const SUPPORT *Support, const int NumberOfComponents) throw (MEDEXCEPTION) | |
| FIELD (driverTypes driverType, const string &fileName, const string &fieldDriverName, const int iterationNumber=-1, const int orderNumber=-1, GMESH *mesh=0) throw (MEDEXCEPTION) | |
| FIELD (const SUPPORT *Support, driverTypes driverType, const string &fileName="", const string &fieldName="", const int iterationNumber=-1, const int orderNumber=-1) throw (MEDEXCEPTION) | |
| ~FIELD () | |
| FIELD & | operator= (const FIELD &m) |
| FIELD & | operator= (T value) |
| FIELD * | operator+ (const FIELD &m) const |
| FIELD * | operator- (const FIELD &m) const |
| FIELD * | operator* (const FIELD &m) const |
| FIELD * | operator/ (const FIELD &m) const |
| FIELD * | operator- () const |
| FIELD & | operator+= (const FIELD &m) |
| FIELD & | operator-= (const FIELD &m) |
| FIELD & | operator*= (const FIELD &m) |
| FIELD & | operator/= (const FIELD &m) |
| void | applyLin (T a, T b, int icomp) |
| double | normMax () const throw (MEDEXCEPTION) |
| void | getMinMax (T &vmin, T &vmax) throw (MEDEXCEPTION) |
| vector< int > | getHistogram (int &nbint) throw (MEDEXCEPTION) |
| FIELD< double > * | buildGradient () const throw (MEDEXCEPTION) |
| FIELD< double > * | buildNorm2Field () const throw (MEDEXCEPTION) |
| double | norm2 () const throw (MEDEXCEPTION) |
| void | applyLin (T a, T b) |
| template<T T_function> | |
| void | applyFunc () |
| void | applyPow (T scalar) |
| double | normL2 (int component, const FIELD< double, FullInterlace > *p_field_volume=NULL) const |
| double | normL2 (const FIELD< double, FullInterlace > *p_field_volume=NULL) const |
| double | normL1 (int component, const FIELD< double, FullInterlace > *p_field_volume=NULL) const |
| double | normL1 (const FIELD< double, FullInterlace > *p_field_volume=NULL) const |
| double | integral (const SUPPORT *subSupport=NULL) const throw (MEDEXCEPTION) |
| Return integral of the field. | |
| FIELD * | extract (const SUPPORT *subSupport) const throw (MEDEXCEPTION) |
| void | init () |
| void | rmDriver (int index=0) |
| int | addDriver (driverTypes driverType, const string &fileName="Default File Name.med", const string &driverFieldName="Default Field Name", MED_EN::med_mode_acces access=MED_EN::RDWR) |
| int | addDriver (GENDRIVER &driver) |
| void | allocValue (const int NumberOfComponents) |
| void | allocValue (const int NumberOfComponents, const int LengthValue) |
| void | deallocValue () |
| void | read (int index=0) |
| void | read (const GENDRIVER &genDriver) |
| void | read (driverTypes driverType, const std::string &filename) |
| void | write (int index=0) |
| void | write (const GENDRIVER &, MED_EN::med_mode_acces medMode=MED_EN::RDWR) |
| void | write (driverTypes driverType, const std::string &filename, MED_EN::med_mode_acces medMode=MED_EN::RDWR) |
| void | writeAppend (int index=0, const string &driverName="") |
| void | writeAppend (const GENDRIVER &) |
| MEDMEM_Array_ * | getArray () const throw (MEDEXCEPTION) |
| ArrayGauss * | getArrayGauss () const throw (MEDEXCEPTION) |
| ArrayNoGauss * | getArrayNoGauss () const throw (MEDEXCEPTION) |
| bool | getGaussPresence () const throw (MEDEXCEPTION) |
| int | getValueLength () const throw (MEDEXCEPTION) |
| const T * | getValue () const throw (MEDEXCEPTION) |
| const T * | getRow (int i) const throw (MEDEXCEPTION) |
| const T * | getColumn (int j) const throw (MEDEXCEPTION) |
| T | getValueIJ (int i, int j) const throw (MEDEXCEPTION) |
| T | getValueIJK (int i, int j, int k) const throw (MEDEXCEPTION) |
| int | getValueByTypeLength (int t) const throw (MEDEXCEPTION) |
| const T * | getValueByType (int t) const throw (MEDEXCEPTION) |
| T | getValueIJByType (int i, int j, int t) const throw (MEDEXCEPTION) |
| T | getValueIJKByType (int i, int j, int k, int t) const throw (MEDEXCEPTION) |
| bool | getValueOnElement (int eltIdInSup, T *retValues) const throw (MEDEXCEPTION) |
| void | getValueOnPoint (const double *coords, double *output) const throw (MEDEXCEPTION) |
| Retrieve value in a given point. | |
| void | getValueOnPoints (int nb_points, const double *coords, double *output) const throw (MEDEXCEPTION) |
| Retrieve values in given points. | |
| const int | getNumberOfGeometricTypes () const throw (MEDEXCEPTION) |
| const GAUSS_LOCALIZATION < INTERLACING_TAG > & | getGaussLocalization (MED_EN::medGeometryElement geomElement) const throw (MEDEXCEPTION) |
| const GAUSS_LOCALIZATION < INTERLACING_TAG > * | getGaussLocalizationPtr (MED_EN::medGeometryElement geomElement) const throw (MEDEXCEPTION) |
| const GAUSS_LOCALIZATION_ * | getGaussLocalizationRoot (MED_EN::medGeometryElement geomElement) const throw (MEDEXCEPTION) |
| Return GAUSS_LOCALIZATION_* whose interlacing type may differ from one of the field. | |
| void | setGaussLocalization (MED_EN::medGeometryElement geomElement, const GAUSS_LOCALIZATION< INTERLACING_TAG > &gaussloc) |
| void | setGaussLocalization (MED_EN::medGeometryElement geomElement, GAUSS_LOCALIZATION_ *gaussloc) |
| Take onership of GAUSS_LOCALIZATION_* whose interlacing type may differ from one of the field. | |
| const int * | getNumberOfGaussPoints () const throw (MEDEXCEPTION) |
| const int | getNumberOfGaussPoints (MED_EN::medGeometryElement geomElement) const throw (MEDEXCEPTION) |
| const int | getNbGaussI (int i) const throw (MEDEXCEPTION) |
| const int * | getNumberOfElements () const throw (MEDEXCEPTION) |
| const MED_EN::medGeometryElement * | getGeometricTypes () const throw (MEDEXCEPTION) |
| bool | isOnAllElements () const throw (MEDEXCEPTION) |
| void | setArray (MEDMEM_Array_ *value) throw (MEDEXCEPTION) |
| FIELD< double, FullInterlace > * | getGaussPointsCoordinates () const throw (MEDEXCEPTION) |
| void | setValue (T *value) throw (MEDEXCEPTION) |
| void | setRow (int i, T *value) throw (MEDEXCEPTION) |
| void | setColumn (int i, T *value) throw (MEDEXCEPTION) |
| void | setValueIJ (int i, int j, T value) throw (MEDEXCEPTION) |
| void | setValueIJK (int i, int j, int k, T value) throw (MEDEXCEPTION) |
| void | setValueIJByType (int i, int j, int t, T value) throw (MEDEXCEPTION) |
| void | setValueIJKByType (int i, int j, int k, int t, T value) throw (MEDEXCEPTION) |
| void | fillFromAnalytic (myFuncType f) throw (MEDEXCEPTION) |
| FIELD< T, INTERLACING_TAG > * | execFunc (int nbOfComponents, myFuncType2 f) throw (MEDEXCEPTION) |
Static Public Member Functions | |
| static FIELD * | add (const FIELD &m, const FIELD &n) |
| static FIELD * | addDeep (const FIELD &m, const FIELD &n) |
| static FIELD * | sub (const FIELD &m, const FIELD &n) |
| static FIELD * | subDeep (const FIELD &m, const FIELD &n) |
| static FIELD * | mul (const FIELD &m, const FIELD &n) |
| static FIELD * | mulDeep (const FIELD &m, const FIELD &n) |
| static FIELD * | div (const FIELD &m, const FIELD &n) |
| static FIELD * | divDeep (const FIELD &m, const FIELD &n) |
| static FIELD * | scalarProduct (const FIELD &m, const FIELD &n, bool deepCheck=false) |
Protected Types | |
| typedef MEDMEM_ArrayInterface < T, INTERLACING_TAG, NoGauss > ::Array | ArrayNoGauss |
| typedef MEDMEM_ArrayInterface < T, INTERLACING_TAG, Gauss > ::Array | ArrayGauss |
| typedef MEDMEM_ArrayInterface < T, NoInterlace, NoGauss > ::Array | ArrayNo |
| typedef MEDMEM_ArrayInterface < T, FullInterlace, NoGauss > ::Array | ArrayFull |
| typedef MEDMEM_ArrayInterface < T, NoInterlaceByType, NoGauss >::Array | ArrayNoByType |
| typedef MEDMEM_ArrayInterface < T, NoInterlaceByType, Gauss > ::Array | ArrayNoByTypeGauss |
| typedef MEDMEM_Array_ | Array |
| typedef T | ElementType |
| typedef INTERLACING_TAG | InterlacingTag |
| typedef map < MED_EN::medGeometryElement, GAUSS_LOCALIZATION_ * > | locMap |
Static Protected Member Functions | |
| static T | pow (T x) |
Protected Attributes | |
| Array * | _value |
| GMESH * | _mesh |
| T | _vmin |
| T | _vmax |
| map < MED_EN::medGeometryElement, GAUSS_LOCALIZATION_ * > | _gaussModel |
Static Protected Attributes | |
| static T | _scalarForPow = 1 |
Private Member Functions | |
| void | _operation (const FIELD &m, const FIELD &n, const char *Op) |
| void | _operationInitialize (const FIELD &m, const FIELD &n, const char *Op) |
| void | _add_in_place (const FIELD &m, const FIELD &n) |
| void | _sub_in_place (const FIELD &m, const FIELD &n) |
| void | _mul_in_place (const FIELD &m, const FIELD &n) |
| void | _div_in_place (const FIELD &m, const FIELD &n) throw (MEDEXCEPTION) |
Friends | |
| class | MED_FIELD_RDONLY_DRIVER< T > |
| class | MED_FIELD_WRONLY_DRIVER< T > |
| class | VTK_FIELD_DRIVER< T > |
typedef MEDMEM_ArrayInterface<T,INTERLACING_TAG,NoGauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayNoGauss [protected] |
typedef MEDMEM_ArrayInterface<T,INTERLACING_TAG,Gauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayGauss [protected] |
typedef MEDMEM_ArrayInterface<T,NoInterlace,NoGauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayNo [protected] |
typedef MEDMEM_ArrayInterface<T,FullInterlace,NoGauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayFull [protected] |
typedef MEDMEM_ArrayInterface<T,NoInterlaceByType,NoGauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayNoByType [protected] |
typedef MEDMEM_ArrayInterface<T,NoInterlaceByType,Gauss>::Array MEDMEM.FIELD< T, INTERLACING_TAG >.ArrayNoByTypeGauss [protected] |
typedef MEDMEM_Array_ MEDMEM.FIELD< T, INTERLACING_TAG >.Array [protected] |
typedef T MEDMEM.FIELD< T, INTERLACING_TAG >.ElementType [protected] |
typedef INTERLACING_TAG MEDMEM.FIELD< T, INTERLACING_TAG >.InterlacingTag [protected] |
typedef map<MED_EN::medGeometryElement,GAUSS_LOCALIZATION_*> MEDMEM.FIELD< T, INTERLACING_TAG >.locMap [protected] |
| typedef void(* MEDMEM.FIELD< T, INTERLACING_TAG >.myFuncType)(const double *, T *) |
| typedef void(* MEDMEM.FIELD< T, INTERLACING_TAG >.myFuncType2)(const T *, T *) |
| MEDMEM.FIELD< T, INTERLACING_TAG >::FIELD | ( | ) |
Constructor with no parameter, most of the attribut members are set to NULL.
References MEDMEM.FIELD_._interlacingType, MEDMEM.FIELD< T, INTERLACING_TAG >._mesh, MEDMEM.FIELD< T, INTERLACING_TAG >._value, MEDMEM.FIELD_._valueType, ASSERT_MED, MED_EN.MED_UNDEFINED_INTERLACE, MED_EN.MED_UNDEFINED_TYPE, and MESSAGE_MED.
| MEDMEM.FIELD< T, INTERLACING_TAG >::FIELD | ( | const FIELD< T, INTERLACING_TAG > & | m | ) |
Copy constructor.
References MEDMEM.FIELD< T, INTERLACING_TAG >._gaussModel, MEDMEM.FIELD_._interlacingType, MEDMEM.FIELD< T, INTERLACING_TAG >._mesh, MEDMEM.FIELD< T, INTERLACING_TAG >._value, MEDMEM.FIELD_._valueType, MEDMEM.RCBASE.addReference(), MEDMEM.FIELD< T, INTERLACING_TAG >.getGaussPresence(), MEDMEM.GAUSS_LOCALIZATION< INTERLACING_TAG >.getType(), Med_Gen_test.it, and MESSAGE_MED.
| MEDMEM.FIELD< T, INTERLACING_TAG >::~FIELD | ( | ) |
Destructor.
References BEGIN_OF_MED, END_OF_MED, Med_Gen_test.it, and SCRUTE_MED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >._operation | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n, | ||
| const char * | Op | ||
| ) | [private] |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::_operationInitialize | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n, | ||
| const char * | Op | ||
| ) | [private] |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::_add_in_place | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n | ||
| ) | [private] |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::_sub_in_place | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n | ||
| ) | [private] |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::_mul_in_place | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n | ||
| ) | [private] |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::_div_in_place | ( | const FIELD< T, INTERLACING_TAG > & | m, |
| const FIELD< T, INTERLACING_TAG > & | n | ||
| ) | throw (MEDEXCEPTION) [private] |
References SCRUTE_MED, test_NonCoincidentDEC.size, med_test1.value1, and med_test1.value2.
| FIELD< T, INTERLACING_TAG > & MEDMEM.FIELD< T, INTERLACING_TAG >::operator= | ( | const FIELD< T, INTERLACING_TAG > & | m | ) |
References MEDMEM.FIELD< T, INTERLACING_TAG >._gaussModel, MEDMEM.FIELD_._interlacingType, MEDMEM.FIELD< T, INTERLACING_TAG >._mesh, MEDMEM.FIELD< T, INTERLACING_TAG >._value, MEDMEM.FIELD_._valueType, MEDMEM.RCBASE.addReference(), MEDMEM.GAUSS_LOCALIZATION< INTERLACING_TAG >.getType(), Med_Gen_test.it, MESSAGE_MED, and MEDMEM.FIELD_.operator=().
| FIELD< T, INTERLACING_TAG > & MEDMEM.FIELD< T, INTERLACING_TAG >::operator= | ( | T | value | ) |
Initializes all the field values to value
References MESSAGE_MED, test_NonCoincidentDEC.size, and batchmode_medcorba_test.value.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::init | ( | ) |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::rmDriver | ( | int | index = 0 | ) | [virtual] |
Remove the driver referenced by its index.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, END_OF_MED, medClient_test.index, LOCALIZED, MED_EXCEPTION, and MESSAGE_MED.
| int MEDMEM.FIELD< T, INTERLACING_TAG >::addDriver | ( | driverTypes | driverType, |
| const string & | fileName = "Default File Name.med", |
||
| const string & | driverName = "Default Field Name", |
||
| MED_EN::med_mode_acces | access = MED_EN::RDWR |
||
| ) | [virtual] |
Creates the specified driver and return its index reference to path to read or write methods.
| driverType | specifies the file type (MED_DRIVER or VTK_DRIVER) |
| fileName | name of the output file |
| driverName | name of the field |
| access | access type (read, write or both) |
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), medMeshing_test.driver, END_OF_MED, and SCRUTE_MED.
| int MEDMEM.FIELD< T, INTERLACING_TAG >::addDriver | ( | GENDRIVER & | driver | ) | [virtual] |
Duplicates the given driver and return its index reference to path to read or write methods.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), MEDMEM.GENDRIVER.getAccessMode(), MEDMEM.GENDRIVER.getDriverType(), MEDMEM.GENDRIVER.getFileName(), MEDMEM.GENDRIVER.merge(), SCRUTE_MED, and MEDMEM.GENDRIVER.setId().
| void MEDMEM.FIELD< T, INTERLACING_TAG >::allocValue | ( | const int | NumberOfComponents | ) |
References BEGIN_OF_MED, END_OF_MED, MED_EN.MED_ALL_ELEMENTS, MESSAGE_MED, and SCRUTE_MED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::allocValue | ( | const int | NumberOfComponents, |
| const int | LengthValue | ||
| ) |
References BEGIN_OF_MED, END_OF_MED, MESSAGE_MED, and SCRUTE_MED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::deallocValue | ( | ) |
References BEGIN_OF_MED, and END_OF_MED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::read | ( | int | index = 0 | ) | [virtual] |
Read FIELD in the file specified in the driver given by its index.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, END_OF_MED, medClient_test.index, LOCALIZED, and MED_EXCEPTION.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::read | ( | const GENDRIVER & | driver | ) | [virtual] |
Read FIELD with the driver. Additional information (name etc.) to select a field must be set to the field.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), END_OF_MED, MEDMEM.GENDRIVER.getDriverType(), MEDMEM.GENDRIVER.getFileName(), and MED_EN.RDONLY.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::read | ( | driverTypes | driverType, |
| const std::string & | filename | ||
| ) | [virtual] |
Read FIELD with driver of the given type. Additional information (name etc.) to select a field must be set to the field.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), END_OF_MED, and MED_EN.RDONLY.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::write | ( | int | index = 0 | ) | [virtual] |
Writes FIELD in the file specified by the driver handle index.
Example :
//... // Attaching the friver to file "output.med", meshname "Mesh" int driver_handle = mesh.addDriver(MED_DRIVER, "output.med", "Mesh"); // Writing the content of mesh to the file mesh.write(driver_handle);
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, END_OF_MED, medClient_test.index, LOCALIZED, and MED_EXCEPTION.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::write | ( | const GENDRIVER & | driver, |
| MED_EN::med_mode_acces | medMode = MED_EN::RDWR |
||
| ) | [virtual] |
Write FIELD with the given driver.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), END_OF_MED, MEDMEM.GENDRIVER.getDriverType(), MEDMEM.GENDRIVER.getFileName(), MEDMEM.getMedAccessMode(), MEDMEM.MED_DRIVER, and MED_EN.WRONLY.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::write | ( | driverTypes | driverType, |
| const std::string & | filename, | ||
| MED_EN::med_mode_acces | medMode = MED_EN::RDWR |
||
| ) | [virtual] |
Write FIELD with driver of the given type.
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, MEDMEM.DRIVERFACTORY.buildDriverForField(), END_OF_MED, MEDMEM.getMedAccessMode(), MEDMEM.MED_DRIVER, and MED_EN.WRONLY.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::writeAppend | ( | int | index = 0, |
| const string & | driverName = "" |
||
| ) | [virtual] |
Write FIELD in the file specified in the driver given by its index. Use this method for ASCII drivers (e.g. VTK_DRIVER)
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, END_OF_MED, medClient_test.index, LOCALIZED, and MED_EXCEPTION.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::writeAppend | ( | const GENDRIVER & | genDriver | ) | [virtual] |
Write FIELD with the driver which is equal to the given driver.
Use by MED object. Use this method for ASCII drivers (e.g. VTK_DRIVER).
Reimplemented from MEDMEM.FIELD_.
References BEGIN_OF_MED, END_OF_MED, and medClient_test.index.
| MEDMEM_Array_ * MEDMEM.FIELD< T, INTERLACING_TAG >::getArray | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, and END_OF_MED.
| MEDMEM_ArrayInterface< T, INTERLACING_TAG, Gauss >::Array * MEDMEM.FIELD< T, INTERLACING_TAG >::getArrayGauss | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| MEDMEM_ArrayInterface< T, INTERLACING_TAG, NoGauss >::Array * MEDMEM.FIELD< T, INTERLACING_TAG >::getArrayNoGauss | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| bool MEDMEM.FIELD< T, INTERLACING_TAG >::getGaussPresence | ( | ) | const throw (MEDEXCEPTION) [virtual] |
Reimplemented from MEDMEM.FIELD_.
| int MEDMEM.FIELD< T, INTERLACING_TAG >::getValueLength | ( | ) | const throw (MEDEXCEPTION) |
Return the actual length of the reference to values array returned by getValue. Take care of number of components and number of Gauss points by geometric type
| const T * MEDMEM.FIELD< T, INTERLACIN_TAG >::getValue | ( | ) | const throw (MEDEXCEPTION) |
Returns a pointer to the value array.
Returns a reference to values array to read them.
References BEGIN_OF_MED.
| const T * MEDMEM.FIELD< T, INTERLACING_TAG >::getRow | ( | int | i | ) | const throw (MEDEXCEPTION) |
Returns a reference to
row of FIELD values array. If a faster accessor is intended you may use getArray() once, then MEDMEM_Array accessors. Be careful if field support is not on all elements getRow use support->getValIndFromGlobalNumber(i).
References LOCALIZED.
| const T * MEDMEM.FIELD< T, INTERLACING_TAG >::getColumn | ( | int | j | ) | const throw (MEDEXCEPTION) |
Returns a reference to $j^{th}$ column of FIELD values array.
| T MEDMEM.FIELD< T, INTERLACING_TAG >::getValueIJ | ( | int | i, |
| int | j | ||
| ) | const throw (MEDEXCEPTION) |
Returns the value of
element and
component. This method only works with fields having no particular Gauss point definition (i.e., fields having one value per element). This method makes the retrieval of the value independent from the interlacing pattern, but it is slower than the complete retrieval obtained by the getValue() method.
Returns the value of $i^{th}$ element and $j^{th}$ component. This method only works with fields having no particular Gauss point definition (i.e., fields having one value per element). This method makes the retrieval of the value independent from the interlacing pattern, but it is slower than the complete retrieval obtained by the getValue() method.
References LOCALIZED.
| T MEDMEM.FIELD< T, INTERLACING_TAG >::getValueIJK | ( | int | i, |
| int | j, | ||
| int | k | ||
| ) | const throw (MEDEXCEPTION) |
Returns the
component of
Gauss points of
value. This method is compatible with elements having more than one Gauss point. This method makes the retrieval of the value independent from the interlacing pattern, but it is slower than the complete retrieval obtained by the getValue() method.
Returns the $j^{th}$ component of $k^{th}$ Gauss points of $i^{th}$ value. This method is compatible with elements having more than one Gauss point. This method makes the retrieval of the value independent from the interlacing pattern, but it is slower than the complete retrieval obtained by the getValue() method.
References LOCALIZED.
| int MEDMEM.FIELD< T, INTERLACIN_TAG >::getValueByTypeLength | ( | int | t | ) | const throw (MEDEXCEPTION) |
Return number of values of a geomertic type in NoInterlaceByType mode
References LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| const T * MEDMEM.FIELD< T, INTERLACIN_TAG >::getValueByType | ( | int | t | ) | const throw (MEDEXCEPTION) |
Return a reference to values array to read them.
References MEDMEM.MEDMEM_Array< ARRAY_ELEMENT_TYPE, INTERLACING_POLICY, CHECKING_POLICY >.getPtr(), LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| T MEDMEM.FIELD< T, INTERLACING_TAG >::getValueIJByType | ( | int | i, |
| int | j, | ||
| int | t | ||
| ) | const throw (MEDEXCEPTION) |
Return the value of i^{th} element in indicated type t and j^{th} component.
References LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| T MEDMEM.FIELD< T, INTERLACING_TAG >::getValueIJKByType | ( | int | i, |
| int | j, | ||
| int | k, | ||
| int | t | ||
| ) | const throw (MEDEXCEPTION) |
Return the j^{th} component of k^{th} gauss points of i^{th} value with type t.
References LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| bool MEDMEM.FIELD< T, INTERLACING_TAG >::getValueOnElement | ( | int | eltIdInSup, |
| T * | retValues | ||
| ) | const throw (MEDEXCEPTION) |
Fills in already allocated retValues array the values related to eltIdInSup. If the element does not exist in this->_support false is returned, true otherwise.
References MED_EN.MED_ALL_ELEMENTS.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::getValueOnPoint | ( | const double * | coords, |
| double * | output | ||
| ) | const throw (MEDEXCEPTION) |
Retrieve value in a given point.
| coords | - point coordinates |
| output | - output buffer |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::getValueOnPoints | ( | int | nb_points, |
| const double * | coords, | ||
| double * | output | ||
| ) | const throw (MEDEXCEPTION) |
Retrieve values in given points.
| nb_points | - number of points |
| coords | - point coordinates |
| output | - output buffer |
References coords, med_opsupp_test.entity, MEDMEM.MESH.getCoordinates(), MEDMEM.MESH.getMeshDimension(), MEDMEM.PointLocatorInSimplex.getNodeWightsInSimplex(), MEDMEM.GMESH.getSpaceDimension(), LOCALIZED, MEDMEM.PointLocator.locate(), MED_EN.MED_CELL, MED_EN.MED_FULL_INTERLACE, MED_EN.MED_NODE, MED_test2.mesh, TestMedCorba2.n, and batchmode_medcorba_test.nbNodes.
| const int MEDMEM.FIELD< T, INTERLACING_TAG >::getNumberOfGeometricTypes | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| const GAUSS_LOCALIZATION< INTERLACING_TAG > & MEDMEM.FIELD< T, INTERLACING_TAG >::getGaussLocalization | ( | MED_EN::medGeometryElement | geomElement | ) | const throw (MEDEXCEPTION) |
References Med_Gen_test.it, and LOCALIZED.
| const GAUSS_LOCALIZATION< INTERLACING_TAG > * MEDMEM.FIELD< T, INTERLACING_TAG >::getGaussLocalizationPtr | ( | MED_EN::medGeometryElement | geomElement | ) | const throw (MEDEXCEPTION) |
References Med_Gen_test.it, and LOCALIZED.
| const GAUSS_LOCALIZATION_ * MEDMEM.FIELD< T, INTERLACING_TAG >::getGaussLocalizationRoot | ( | MED_EN::medGeometryElement | geomElement | ) | const throw (MEDEXCEPTION) |
Return GAUSS_LOCALIZATION_* whose interlacing type may differ from one of the field.
References Med_Gen_test.it, and LOCALIZED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setGaussLocalization | ( | MED_EN::medGeometryElement | geomElement, |
| const GAUSS_LOCALIZATION< INTERLACING_TAG > & | gaussloc | ||
| ) |
References Med_Gen_test.it.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setGaussLocalization | ( | MED_EN::medGeometryElement | geomElement, |
| GAUSS_LOCALIZATION_ * | gaussloc | ||
| ) |
Take onership of GAUSS_LOCALIZATION_* whose interlacing type may differ from one of the field.
References Med_Gen_test.it.
| const int * MEDMEM.FIELD< T, INTERLACING_TAG >::getNumberOfGaussPoints | ( | ) | const throw (MEDEXCEPTION) |
| const int MEDMEM.FIELD< T, INTERLACING_TAG >::getNumberOfGaussPoints | ( | MED_EN::medGeometryElement | geomElement | ) | const throw (MEDEXCEPTION) |
Returns number of Gauss points for this medGeometryElement.
Note : if there is no GAUSS_LOCALIZATION having this medGeometryElement but the medGeometryElement exist in the SUPPORT, getNumberOfGaussPoints return 1
References Med_Gen_test.it, and LOCALIZED.
| const int MEDMEM.FIELD< T, INTERLACING_TAG >::getNbGaussI | ( | int | i | ) | const throw (MEDEXCEPTION) |
| const int * MEDMEM.FIELD< T, INTERLACING_TAG >::getNumberOfElements | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| const MED_EN::medGeometryElement * MEDMEM.FIELD< T, INTERLACING_TAG >::getGeometricTypes | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| bool MEDMEM.FIELD< T, INTERLACING_TAG >::isOnAllElements | ( | ) | const throw (MEDEXCEPTION) |
References BEGIN_OF_MED, END_OF_MED, and LOCALIZED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setArray | ( | MEDMEM_Array_ * | value | ) | throw (MEDEXCEPTION) |
| FIELD< double, FullInterlace > * MEDMEM.FIELD< T, INTERLACING_TAG >::getGaussPointsCoordinates | ( | ) | const throw (MEDEXCEPTION) |
Return the coordinates of the gauss points The returned field has SPACEDIM components
References INTERP_KERNEL.GaussCoords.addGaussInfo(), BEGIN_OF_MED, INTERP_KERNEL.GaussCoords.calculateCoords(), medClient_test.connectivity, END_OF_MED, MED_EN.geoNames, MEDMEM.MESH.getConnectivity(), MEDMEM.MESH.getConnectivityIndex(), MEDMEM.MESH.getCoordinates(), MEDMEM.MESH.getCoordinatesUnits(), MEDMEM.GAUSS_LOCALIZATION< INTERLACING_TAG >.getGsCoo(), MEDMEM.GAUSS_LOCALIZATION< INTERLACING_TAG >.getNbGauss(), MEDMEM.GAUSS_LOCALIZATION< INTERLACING_TAG >.getRefCoo(), MEDMEM.GMESH.getSpaceDimension(), Med_Gen_test.it, LOCALIZED, MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_FULL_INTERLACE, MED_EN.MED_NODAL, MED_EN.MED_POLYGON, MED_EN.MED_POLYHEDRA, MED_EN.MED_SEG2, MED_EN.MED_SEG3, MED_test2.mesh, batchmode_medcorba_test.nbNodes, INTERP_KERNEL.NORM_SEG2, INTERP_KERNEL.NORM_SEG3, MEDMEM.FIELD< T, INTERLACING_TAG >.setArray(), MEDMEM.FIELD_.setComponentDescription(), MEDMEM.FIELD_.setComponentName(), MEDMEM.FIELD_.setDescription(), MEDMEM.FIELD_.setIterationNumber(), MEDMEM.FIELD_.setMEDComponentUnit(), MEDMEM.FIELD_.setName(), MEDMEM.FIELD_.setOrderNumber(), MEDMEM.FIELD_.setTime(), MEDMEM.FIELD< T, INTERLACING_TAG >.setValueIJK(), batchmode_medcorba_test.spaceDim, medClient_test.type, and medClient_test.types.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setValue | ( | T * | value | ) | throw (MEDEXCEPTION) |
This method makes it possible to have the field pointing to an existing value array. The ordering of the elements in the value array must conform to the MEDMEM ordering (I,K,J) : the outer loop is on the elements, the intermediate loop is on the Gauss points, the inner loop is on the components.
Copy new values array in FIELD according to the given mode.
Array must have right size. If not results are unpredicable. In MED_FULL_INTERLACE mode, values are stored elementwise in X1,Y1,Z1,X2,Y2,Z2.. order. In MED_NO_INTERLACE mode, values are stored componentwise in X1,X2,X3,...,Y1,Y2,Y3,... order.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setRow | ( | int | i, |
| T * | value | ||
| ) | throw (MEDEXCEPTION) |
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setColumn | ( | int | j, |
| T * | value | ||
| ) | throw (MEDEXCEPTION) |
Update values array in the $j^{th}$ column of FIELD values array with the given ones and according to specified mode.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setValueIJ | ( | int | i, |
| int | j, | ||
| T | value | ||
| ) | throw (MEDEXCEPTION) |
Sets the value of
element and
component with value.
Sets the value of i^{th} element and j^{th} component with the given one.
References LOCALIZED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setValueIJK | ( | int | i, |
| int | j, | ||
| int | k, | ||
| T | value | ||
| ) | throw (MEDEXCEPTION) |
Set the value of i^{th} element, j^{th} component and k^{th} gauss point with the given one.
References LOCALIZED.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setValueIJByType | ( | int | i, |
| int | j, | ||
| int | t, | ||
| T | value | ||
| ) | throw (MEDEXCEPTION) |
Set the value of i^{th} element and j^{th} component with the given one.
References LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::setValueIJKByType | ( | int | i, |
| int | j, | ||
| int | k, | ||
| int | t, | ||
| T | value | ||
| ) | throw (MEDEXCEPTION) |
Set the value of component of k^{th} gauss points of i^{th} element and j^{th} component with the given one.
References LOCALIZED, and MED_EN.MED_NO_INTERLACE_BY_TYPE.
| void MEDMEM.FIELD< T, INTERLACING_TAG >::fillFromAnalytic | ( | myFuncType | f | ) | throw (MEDEXCEPTION) |
Fill array by using T_Analytic. WARNING : "this" must have allocated its array by setting this->_support and this->_numberOfComponents properly. Typically you should use it on a field built with constructor FIELD<T>.FIELD<T>(SUPPORT *,int nbOfComponents)
References MEDMEM.MESH.convertInMESH(), MEDCouplingCorbaSwigTestClt.f, MEDMEM.GMESH.getBarycenter(), MEDMEM.MESH.getCoordinates(), MEDMEM.GMESH.getSpaceDimension(), MEDMEM.FIELD< T, INTERLACING_TAG >.getValue(), LOCALIZED, MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_FULL_INTERLACE, MED_EN.MED_NO_INTERLACE, MED_EN.MED_NODE, MED_test2.mesh, MEDMEM.RCBASE.removeReference(), and batchmode_medcorba_test.spaceDim.
| FIELD< T, INTERLACING_TAG > * MEDMEM.FIELD< T, INTERLACING_TAG >::execFunc | ( | int | nbOfComponents, |
| myFuncType2 | f | ||
| ) | throw (MEDEXCEPTION) |
Execute a function on _values on 'this' and put the result on a newly created field that has to be deallocated. WARNING : "this" must have allocated its array by setting this->_support and this->_numberOfComponents properly. Typically you should use it on a field built with constructor FIELD<T>.FIELD<T>(SUPPORT *,int nbOfComponents)
References MEDCouplingCorbaSwigTestClt.f, MEDMEM.FIELD< T, INTERLACING_TAG >.getValue(), and testMEDMEM.ret.
friend class MED_FIELD_RDONLY_DRIVER< T > [friend] |
friend class MED_FIELD_WRONLY_DRIVER< T > [friend] |
friend class VTK_FIELD_DRIVER< T > [friend] |
Array* MEDMEM.FIELD< T, INTERLACING_TAG >._value [protected] |
GMESH* MEDMEM.FIELD< T, INTERLACING_TAG >._mesh [protected] |
T MEDMEM.FIELD< T, INTERLACING_TAG >._vmin [protected] |
T MEDMEM.FIELD< T, INTERLACING_TAG >._vmax [protected] |
map<MED_EN::medGeometryElement,GAUSS_LOCALIZATION_*> MEDMEM.FIELD< T, INTERLACING_TAG >._gaussModel [protected] |
T MEDMEM.FIELD< T, INTERLACING_TAG >::_scalarForPow = 1 [static, protected] |