Example of usage of radial basis function MRBF block employing scalar input dofs to retrieve an output scalar field on the geometry. The field will be interpreted as the entity of displacement on the local normal and will be applied to geometry to obtain the final deformation. Nodal RBF are distributed on surface with CreateSeedsOnSurface block.Using: MimmoGeometry, CreateSeedsOnSurface, GenericInput, MRBF, Apply, Chain, Partition(MPI version).
To run : ./manipulators_example_00008
To run(MPI version) : mpirun -np X manipulators_example_00008
visit: mimmo website
#include "mimmo_manipulators.hpp"
#include "mimmo_iogeneric.hpp"
#include "mimmo_utils.hpp"
#include <random>
#if MIMMO_ENABLE_MPI
#include "mimmo_parallel.hpp"
#endif
void test00008() {
#if MIMMO_ENABLE_MPI
mimmo::Partition* partition= new mimmo::Partition();
partition->setPartitionMethod(mimmo::PartitionMethod::PARTGEOM);
partition->setPlotInExecution(true);
#endif
#if MIMMO_ENABLE_MPI
#else
#endif
#if MIMMO_ENABLE_MPI
#endif
delete mrbf;
delete seeder;
delete applier;
delete inputDof;
delete mimmo0;
delete mimmo1;
#if MIMMO_ENABLE_MPI
delete partition;
#endif
return;
}
int main( int argc, char *argv[] ) {
BITPIT_UNUSED(argc);
BITPIT_UNUSED(argv);
#if MIMMO_ENABLE_MPI
MPI_Init(&argc, &argv);
#endif
try{
test00008() ;
}
catch(std::exception & e){
std::cout<<"manipulators_example_00008 exited with an error of type : "<<e.what()<<std::endl;
return 1;
}
#if MIMMO_ENABLE_MPI
MPI_Finalize();
#endif
return 0;
}