

Public Member Functions | |
| NonCoincidentDEC () | |
| NonCoincidentDEC (ProcessorGroup &, ProcessorGroup &) | |
| void | prepareSourceDE () |
| void | prepareTargetDE () |
| void | recvData () |
| void | sendData () |
| void | setInterpolationMethod (InterpolationMethod method) |
| void | synchronize () |
| virtual | ~NonCoincidentDEC () |
Public Member Functions inherited from MEDCoupling::DEC | |
| void | copyFrom (const DEC &other) |
| DEC () | |
| virtual void | sendRecvData (bool way=true)=0 |
| virtual | ~DEC () |
Public Member Functions inherited from MEDCoupling::DECOptions | |
| DECOptions () | |
| DECOptions (const DECOptions &deco) | |
| AllToAllMethod | getAllToAllMethod () const |
| bool | getAsynchronous () const |
| bool | getForcedRenormalization () const |
| const std::string & | getMethod () const |
| TimeInterpolationMethod | getTimeInterpolationMethod () const |
| void | setAllToAllMethod (AllToAllMethod sp) |
| void | setAsynchronous (bool dr) |
| void | setForcedRenormalization (bool dr) |
| void | setMethod (const char *m) |
| void | setTimeInterpolationMethod (TimeInterpolationMethod it) |
Additional Inherited Members | |
Protected Attributes inherited from MEDCoupling::DEC | |
| const CommInterface * | _comm_interface |
Protected Attributes inherited from MEDCoupling::DECOptions | |
| AllToAllMethod | _allToAllMethod |
| bool | _asynchronous |
| bool | _forcedRenormalization |
| std::string | _method |
| TimeInterpolationMethod | _timeInterpolationMethod |
NonCoincidentDEC enables non-conservative remapping of fields between two parallel codes. The computation is possible for 3D meshes and 2D meshes. It is not available for 3D surfaces.
The computation enables fast parallel localization, and is based on a point in element search, followed by a field evaluation at the point location. Thus, it is typically faster than the InterpKernelDEC which uses a conservative remapping (i.e. the same algorithms of volume intersection as in the sequential remapper) It is particularly true for the initialisation phase (synchronize() method) which has a significant computation cost in InterpKernelDEC-det.
In the present version, only fields lying on elements ("P0") are considered. The value is estimated by locating the barycenter of the target side cell in a source cell and sending the value of this source cell as the value of the target cell.
triangular mesh. The triangle barycenters are computed and located in the quadrangles. In a P0-P0 interpolation, the value on the quadrangle is then applied to the triangles whose barycenter lies within."
triangular mesh. The triangle barycenters are computed and located in the quadrangles. In a P0-P0 interpolation, the value on the quadrangle is then applied to the triangles whose barycenter lies within."
A typical use of NonCoincidentDEC encompasses two distinct phases :
The following code excerpt illutrates a typical use of the NonCoincidentDEC class.
Computing the field on the receiving side can be expressed in terms of a matrix-vector product :
, with
the field on the target side and
the field on the source side. In the P0-P0 case, this matrix is a plain rectangular matrix with one non-zero element per row (with value 1). For instance, in the above figure, the matrix is :
| MEDCoupling::NonCoincidentDEC::NonCoincidentDEC | ( | ) |
| MEDCoupling::NonCoincidentDEC::NonCoincidentDEC | ( | ProcessorGroup & | source_group, |
| ProcessorGroup & | target_group | ||
| ) |
Constructor of a non coincident DEC with a source group on which lies a field lying on a mesh and a target group on which lies a mesh.
| source_group | ProcessorGroup on the source side |
| target_group | ProcessorGroup on the target side |
|
virtual |
|
virtual |
Synchronization process. Calling this method synchronizes the topologies so that the target side gets the information which enable it to fetch the field value from the source side. A typical call is :
NonCoincidentDEC dec(source_group,target_group); dec.attachLocalField(field); dec.synchronize();
Implements MEDCoupling::DEC.
References MEDCoupling::medmemMeshToFVMMesh().
| void MEDCoupling::NonCoincidentDEC::recvData | ( | ) |
This method is called on the target group in order to trigger the retrieveal of field data. It must be called synchronously with a sendData() call on the source group.
| void MEDCoupling::NonCoincidentDEC::sendData | ( | ) |
This method is called on the source group in order to send field data. It must be called synchronously with a recvData() call on the target group.
| void MEDCoupling::NonCoincidentDEC::prepareSourceDE | ( | ) |
| void MEDCoupling::NonCoincidentDEC::prepareTargetDE | ( | ) |
| void MEDCoupling::NonCoincidentDEC::setInterpolationMethod | ( | InterpolationMethod | method | ) |