A field in MEDCoupling point of view, is a structure that allows to store a discretization of a physical value on a defined discretized spatial and possibly temporal support.
The spatial support is a mesh. A field is lying on an entity that will be specified by the spatial discretization of the field. For example a field on node will lie on all nodes of its mesh.
A field on cell will lie on all cells of its mesh.
Fields in MEDCoupling follow the two following rules :
The main properties of a field are :
This definition of field in MEDCoupling allows an instance of field to know at any point inside its spatial-temporal support the value.
The class that incarnates the concept described above is : MEDCoupling::MEDCouplingFieldDouble.
Some of most important implemented methods are :
This is the concept that makes the link, independently from temporal discretization, between the field and its spatial support (mesh). This concept allows the field to make a check and interpretation of an array of values given a spatial support (mesh).
The abstract class that incarnates the concept is : MEDCoupling::MEDCouplingFieldDiscretization.
The most important pure virtual methods are :
This information allows, independently from spatial discretization, to associate a time interval, if it exists, on which the field will be defined. This concept is able to give the value at any time of the definition interval (if any).
The abstract class MEDCoupling::MEDCouplingTimeDiscretization incarnates this described concept.
This classes and its subclasses are responsible in storing the arrays of the aggregating field.
The most important methods are :
Here we will make the assumption that an instance of MEDCouplingMesh
called mesh
has been created ( to know more about mesh creation click here ).
Here the Python implementation.
Here the Python implementation.
Here the Python implementation.
Here the Python implementation.
Here we will make the assumption that an instance of MEDCouplingMesh called mesh
has been created with spaceDim==2.
Here a C++ example of more advanced use of MEDCouplingFieldDouble instances.
Here a Python example of more advanced use of MEDCouplingFieldDouble instances.