Version: 5.1.6

MEDMEM_REMAPPER Class Reference

#include <MEDMEM_Remapper.hxx>

Inheritance diagram for MEDMEM_REMAPPER:
Inheritance graph

Public Member Functions

 MEDMEM_REMAPPER ()
virtual ~MEDMEM_REMAPPER ()
int prepare (const MEDMEM::MESH &source_mesh, const MEDMEM::MESH &target_mesh, const char *method)
void transfer (const MEDMEM::FIELD< double > &source_field, MEDMEM::FIELD< double > &target_field)
void reverseTransfer (MEDMEM::FIELD< double > &source_field, const MEDMEM::FIELD< double > &target_field)
MEDMEM::FIELD< double > * transferField (const MEDMEM::FIELD< double > &source_field)
MEDMEM::FIELD< double > * reverseTransferField (const MEDMEM::FIELD< double > &target_field)
void printMatrixInfo ()
int setOptionDouble (const std::string &key, double value)
int setOptionInt (const std::string &key, int value)
int setOptionString (const std::string &key, std::string &value)
MEDMEM::FIELD< double > * getSupportVolumes (const MEDMEM::SUPPORT &support)
 returns the volumes of the cells underlying the support support

Data Fields

INTERP_KERNEL::Matrix< double,
INTERP_KERNEL::ALL_FORTRAN_MODE > * 
_matrix
std::vector< double_deno_multiply
std::vector< double_deno_reverse_multiply
int _nb_rows
int _nb_cols
string _sourceFieldType
string _targetFieldType
const MEDMEM::MESH_sourceMesh
const MEDMEM::MESH_targetMesh
MEDMEM::SUPPORT_sourceSupport
MEDMEM::SUPPORT_targetSupport

Constructor & Destructor Documentation

MEDMEM_REMAPPER::MEDMEM_REMAPPER (  ) 
MEDMEM_REMAPPER::~MEDMEM_REMAPPER (  )  [virtual]

Member Function Documentation

int MEDMEM_REMAPPER::prepare ( const MEDMEM::MESH mesh_source,
const MEDMEM::MESH mesh_target,
const char *  method 
)

This method computes the intersection matrix between source mesh_source and mesh_target. It is a preliminary step that is necessary before calling the transfer() method. The method analyses the dimensions of the meshes and checks for compatibility.

References _deno_multiply, _deno_reverse_multiply, _matrix, _nb_cols, _nb_rows, _sourceFieldType, _sourceMesh, _sourceSupport, _targetFieldType, _targetMesh, _targetSupport, INTERP_KERNEL.Matrix< T, type >.colSum(), MEDMEM.MESH.getMeshDimension(), MEDMEM.MESH.getSpaceDimension(), INTERP_KERNEL.Interpolation3D.interpolateMeshes(), INTERP_KERNEL.InterpolationPlanar< RealPlanar >.interpolateMeshes(), MED_EN.MED_CELL, MED_EN.MED_NODE, and INTERP_KERNEL.Matrix< T, type >.rowSum().

void MEDMEM_REMAPPER::transfer ( const MEDMEM::FIELD< double > &  source_field,
MEDMEM::FIELD< double > &  target_field 
)
void MEDMEM_REMAPPER::reverseTransfer ( MEDMEM::FIELD< double > &  source_field,
const MEDMEM::FIELD< double > &  target_field 
)
MEDMEM::FIELD< double > * MEDMEM_REMAPPER::transferField ( const MEDMEM::FIELD< double > &  source_field  ) 
MEDMEM::FIELD< double > * MEDMEM_REMAPPER::reverseTransferField ( const MEDMEM::FIELD< double > &  target_field  ) 
void MEDMEM_REMAPPER::printMatrixInfo (  ) 

References _matrix.

int MEDMEM_REMAPPER::setOptionDouble ( const std::string &  key,
double  value 
)
int MEDMEM_REMAPPER::setOptionInt ( const std::string &  key,
int  value 
)
int MEDMEM_REMAPPER::setOptionString ( const std::string &  key,
std::string &  value 
)
MEDMEM::FIELD< double > * MEDMEM_REMAPPER::getSupportVolumes ( const MEDMEM::SUPPORT support  ) 

returns the volumes of the cells underlying the support support

For 2D geometries, the returned field contains the areas. For 3D geometries, the returned field contains the volumes.

Parameters:
support : support whose cell volumes are required
Returns:
field containing the volumes

References MEDMEM.MESH.getArea(), MEDMEM.SUPPORT.getMesh(), MEDMEM.MESH.getMeshDimension(), MEDMEM.MESH.getVolume(), and MED_test2.mesh.


Field Documentation

INTERP_KERNEL::Matrix<double, INTERP_KERNEL::ALL_FORTRAN_MODE>* MEDMEM_REMAPPER._matrix