waves
Basic FE playground
tboxVtk::VtkExport_KIM2CLEAN Class Reference

Save routines of Kim. More...

#include <wVtkExport_KIM2CLEAN.h>

Public Member Functions

 VtkExport_KIM2CLEAN (std::shared_ptr< tbox::MshData > _msh)
 
virtual ~VtkExport_KIM2CLEAN ()
 
void save_MPI (std::string const &fname, tbox::Results const &r, std::map< int, int > nodeWO_LO_to_GO, std::map< int, int > nodeWO_GO_to_LO, std::map< int, int > elements_GO_to_LO) const
 
void save_MPI (std::string const &fname, tbox::Results const &r, std::vector< int > contactElementID, std::map< int, int > nodeWO_LO_to_GO, std::map< int, int > nodeWO_GO_to_LO) const
 

Public Attributes

std::shared_ptr< tbox::MshData > msh
 

Detailed Description

Save routines of Kim.

Authors
Kim Liegeois
Todo:
those functions have to be removed and wVtkExport has to be used instead. However, there are currently two difficulties.
  • Each save_MPI function save on different meshes, a contact mesh has to be created and given to one of the VtkExport.
  • wVtkExport do not support MPI for now and some #ifdef VTK_HAS_MPI are currently unwanted in wVtkExport. At the end of the day, instead of using element[i]->no-1 it will be required to use a map to translate the global mesh id to local ones, those map will be trivial for one proc cases, and more complex when MPI is used. This will allow each proc to write only the data that it has computed. Moreover, Vtk MPI initialization and finalization will have to be used. Those can be done using some unwanted #ifdef VTK_HAS_MPI or using more elegant strategies or requiring VTK binaries that support MPI.

Constructor & Destructor Documentation

◆ VtkExport_KIM2CLEAN()

VtkExport_KIM2CLEAN::VtkExport_KIM2CLEAN ( std::shared_ptr< tbox::MshData >  _msh)

◆ ~VtkExport_KIM2CLEAN()

virtual tboxVtk::VtkExport_KIM2CLEAN::~VtkExport_KIM2CLEAN ( )
inlinevirtual

Member Function Documentation

◆ save_MPI() [1/2]

void tboxVtk::VtkExport_KIM2CLEAN::save_MPI ( std::string const &  fname,
tbox::Results const &  r,
std::map< int, int >  nodeWO_LO_to_GO,
std::map< int, int >  nodeWO_GO_to_LO,
std::map< int, int >  elements_GO_to_LO 
) const

◆ save_MPI() [2/2]

void tboxVtk::VtkExport_KIM2CLEAN::save_MPI ( std::string const &  fname,
tbox::Results const &  r,
std::vector< int >  contactElementID,
std::map< int, int >  nodeWO_LO_to_GO,
std::map< int, int >  nodeWO_GO_to_LO 
) const

Member Data Documentation

◆ msh

std::shared_ptr<tbox::MshData> tboxVtk::VtkExport_KIM2CLEAN::msh

The documentation for this class was generated from the following files: