#include <Rocon.H>
Public Member Functions | |
Rocon () | |
Default constructor. More... | |
virtual | ~Rocon () |
void | init_from_file (const char *inp, const int *ndiv) |
Initialize Rocon from the given file. More... | |
void | initialize (const COM::Attribute *pmesh, const int *ndiv) |
Initialize Rocon with given mesh. More... | |
void | find_intersections (const COM::Attribute *pmesh, const COM::Attribute *disp, COM::Attribute *pos, COM::Attribute *constr) |
Displace the points in pmesh by disp and calcuate the intersections (if any) with the constraint mesh set in "initialize". More... | |
void | constrain_displacements (const COM::Attribute *pmesh, COM::Attribute *disp, const COM::Attribute *pos, const COM::Attribute *constr) |
Constrain the displacements, disp, to the appropriate positions, pos. More... | |
void | burnout (const COM::Attribute *pmesh, const COM::Attribute *cflag, COM::Attribute *bflag) |
Sets bflag = 0 for every element for which every node's cflag = 1. More... | |
void | burnout_filter (const COM::Attribute *bflag, COM::Attribute *target) |
Sets target = 0 for every burning pane element on which bflag = 0. More... | |
std::string & | WindowName () |
void | SetVerbosity (int v) |
Static Public Member Functions | |
static void | load (const std::string &mname) |
static void | unload (const std::string &mname) |
Protected Attributes | |
int | _verbose |
int | _rank |
MPI_Comm | _comm |
double | _TOL |
std::string | _wname |
MeshBndSurf * | _mbs |
bool | _checked |
double | _transform_x |
double | _transform_y |
double | _transform_z |
bool | _transform |
|
inline |
void burnout | ( | const COM::Attribute * | pmesh, |
const COM::Attribute * | cflag, | ||
COM::Attribute * | bflag | ||
) |
Sets bflag = 0 for every element for which every node's cflag = 1.
set bflag to 0 for every element whos nodes all have cflag = 1.
Definition at line 227 of file Rocon.C.
References _comm, _rank, _verbose, Mesh::Connectivity::AddElement(), COM_assertion_msg, COM_get_array(), COM_get_connectivities(), COM_get_panes(), COM_get_size(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::Connectivity::Esize(), i, j, k, MPI_SUM, Mesh::Connectivity::Nelem(), Mesh::Connectivity::Node(), and Mesh::Connectivity::Sync().
Referenced by load().
void burnout_filter | ( | const COM::Attribute * | bflag, |
COM::Attribute * | target | ||
) |
Sets target = 0 for every burning pane element on which bflag = 0.
set bflag to 0 for every element whos nodes all have cflag = 1.
Definition at line 491 of file Rocon.C.
References _comm, _rank, _verbose, COM_assertion_msg, COM_get_array(), COM_get_panes(), COM_get_size(), i, and MPI_SUM.
Referenced by load().
void constrain_displacements | ( | const COM::Attribute * | pmesh, |
COM::Attribute * | disp, | ||
const COM::Attribute * | pos, | ||
const COM::Attribute * | constr | ||
) |
Constrain the displacements, disp, to the appropriate positions, pos.
Definition at line 706 of file Rocon.C.
References _comm, _rank, _TOL, COM_assertion_msg, COM_get_array(), COM_get_panes(), COM_get_size(), COMMPI_Comm_rank(), COMMPI_Initialized(), i, and MPI_SUM.
Referenced by load().
void find_intersections | ( | const COM::Attribute * | pmesh, |
const COM::Attribute * | disp, | ||
COM::Attribute * | pos, | ||
COM::Attribute * | constr | ||
) |
Displace the points in pmesh by disp and calcuate the intersections (if any) with the constraint mesh set in "initialize".
The int IO attribute "constr" indicates (by a 1 or 0) which nodes are already on the constraint surface on input. On output, "constr" will be updated to include the newly constrained nodes as well.
The int IO attribute "constr" indicates (by a 1 or 0) which nodes are already on the constraint surface on input. On output, "constr" will be updated to include the newly constrained nodes as well. On output, pos contains the intersection position of any nodes which collide with the constraint surface.
Definition at line 557 of file Rocon.C.
References _checked, _comm, _mbs, _rank, _verbose, CheckCoordinates(), COM_assertion_msg, COM_get_array(), COM_get_panes(), COM_get_size(), COMMPI_Comm_rank(), COMMPI_Initialized(), i, MeshBndSurf::intersection(), and MPI_SUM.
Referenced by load().
void init_from_file | ( | const char * | inp, |
const int * | ndiv | ||
) |
Initialize Rocon from the given file.
Init Rocon from a given input mesh.
Definition at line 13 of file Rocon.C.
References _transform, _transform_x, _transform_y, _transform_z, _wname, COM_call_function(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_UNLOAD_MODULE_STATIC_DYNAMIC, and COM_window_init_done().
Referenced by load().
void initialize | ( | const COM::Attribute * | pmesh, |
const int * | ndiv | ||
) |
Initialize Rocon with given mesh.
Definition at line 98 of file Rocon.C.
References _checked, _comm, _mbs, _rank, _transform, _transform_x, _transform_y, _transform_z, CheckCoordinates(), COM_assertion_msg, COM_clone_attribute(), COM_delete_window(), COM_get_array(), COM_get_panes(), COM_get_size(), COM_new_window(), COM_window_init_done(), COMMPI_Comm_rank(), COMMPI_Initialized(), i, MeshBndSurf::initialize(), MeshBndSurf::intersection(), and TransformCoordinates().
Referenced by load().
|
static |
Definition at line 813 of file Rocon.C.
References burnout(), burnout_filter(), COM_INT, COM_METADATA, COM_new_attribute(), COM_new_window(), COM_RAWDATA, COM_set_member_function(), COM_set_object(), COM_STRING, COM_VOID, COM_window_init_done(), constrain_displacements(), find_intersections(), init_from_file(), initialize(), Rocon(), SetVerbosity(), and WindowName().
Referenced by Rocon_load_module(), rocon_load_module(), ROCON_LOAD_MODULE(), rocon_load_module_(), and ROCON_LOAD_MODULE_().
|
inline |
Definition at line 98 of file Rocon.H.
Referenced by load().
|
static |
Definition at line 856 of file Rocon.C.
References COM_assertion_msg, COM_delete_window(), and COM_get_object().
Referenced by Rocon_unload_module(), rocon_unload_module(), ROCON_UNLOAD_MODULE(), rocon_unload_module_(), and ROCON_UNLOAD_MODULE_().
|
inline |
|
protected |
Definition at line 106 of file Rocon.H.
Referenced by find_intersections(), and initialize().
|
protected |
Definition at line 102 of file Rocon.H.
Referenced by burnout(), burnout_filter(), constrain_displacements(), find_intersections(), and initialize().
|
protected |
Definition at line 105 of file Rocon.H.
Referenced by find_intersections(), and initialize().
|
protected |
Definition at line 101 of file Rocon.H.
Referenced by burnout(), burnout_filter(), constrain_displacements(), find_intersections(), and initialize().
|
protected |
Definition at line 103 of file Rocon.H.
Referenced by constrain_displacements().
|
protected |
Definition at line 110 of file Rocon.H.
Referenced by init_from_file(), and initialize().
|
protected |
Definition at line 107 of file Rocon.H.
Referenced by init_from_file(), and initialize().
|
protected |
Definition at line 108 of file Rocon.H.
Referenced by init_from_file(), and initialize().
|
protected |
Definition at line 109 of file Rocon.H.
Referenced by init_from_file(), and initialize().
|
protected |
Definition at line 98 of file Rocon.H.
Referenced by burnout(), burnout_filter(), find_intersections(), and SetVerbosity().
|
protected |
Definition at line 104 of file Rocon.H.
Referenced by init_from_file(), and WindowName().