Go to the source code of this file.
Classes | |
class | SolnMetaData |
Functions | |
int | TRAIL_FD2FE_WinCreate (const std::string &wname, const std::string &outwname, std::ostream *ouf=NULL) |
Adds ghost zones for block structured meshes to close gaps in the interface surface mesh. More... | |
int | TRAIL_FD2FE_WinCreate2 (const std::string &wname, const std::string &outwname, std::ostream *ouf=NULL) |
Takes as input a block structured FD grid. More... | |
int | TRAIL_FD2FE_Transfer (const std::string &, const std::string &, const std::string &, std::ostream *ouf=NULL) |
int | TRAIL_FE2FD_Transfer (const std::string &fewin, const std::string &fdwin, const std::string &attlist, MPI_Comm communicator, std::ostream *ouf=NULL) |
int | TRAIL_SurfaceMesh2Window (const std::string &wname, int pane_id, Mesh::NodalCoordinates &, Mesh::Connectivity &) |
Creates a window from a Mesh object. (copies data) More... | |
void | TRAIL_AutoSurfer (const std::string &src, const std::string &trg, const std::string &srcpath=".", const std::string &trgpath=".", const std::string &destpath=".", double t=0, MPI_Comm comm=MPI_COMM_NULL, std::ostream *=NULL) |
void | TRAIL_CreateRobustFC (const std::string &wname, const std::string &path) |
void | TRAIL_MergeRocinFiles (const std::string &srcname, const std::string &trgname, const std::string &path="./", double t=0, unsigned int np=1, std::ostream *=NULL) |
void | TRAIL_HDF2Window (const std::string &fname, const std::string &wname, int verb=0) |
void | TRAIL_GetRocstarDumpStrings (const std::string &filename, std::string &wname, std::string ×tring, std::string &rankstring) |
void | TRAIL_File2Window (const std::string &fname, const std::string &wname, std::vector< int > &bcflags, MPI_Comm comm=MPI_COMM_NULL, bool apply_disp=false, bool all=false, bool with_ghost=false) |
bool | TRAIL_WriteWindow (const std::string &wname, const std::string &path, const std::string &twin, const std::string &tpath, double t, unsigned int id, MPI_Comm comm, std::ostream *=NULL) |
void | TRAIL_WriteRocinControl (std::vector< int > &pane_id, const std::string &pre, int rank) |
std::string | TRAIL_TimeString (double t) |
double | TRAIL_TimeString (const std::string &) |
bool | TRAIL_TransferSurfDataFILE (const std::string &src, const std::string &trg, const std::string &dest, const std::string &srcpath, const std::string &trgpath, const std::string &destpath, const std::string &crpath, double t, unsigned int id, MPI_Comm comm, std::ostream *=NULL) |
void | TRAIL_Debug (GEM_Partition &gp) |
void | TRAIL_RocmopSmooth (GEM_Partition &gp, unsigned int niter) |
void | TRAIL_RocpropSmoothSurf (double *nc, unsigned int nnodes, unsigned int *ec, unsigned int nel, unsigned int *cnstr_type, unsigned int niter) |
int | TRAIL_UnstructuredMesh2Pane (const std::string &wname, int pane_id, Mesh::UnstructuredMesh &mesh, SolnMetaData &smdv, std::vector< std::vector< double > > &soln_data, int verblevel) |
Creates a window from a Mesh object. (copies data) More... | |
void | TRAIL_GetWindowSolnMetaData (const std::string &wname, std::vector< SolnMetaData > &smdv, int verblevel=0) |
void | TRAIL_GetWindowSolnData (const std::string &wname, std::vector< std::vector< std::vector< double > > > &soln_data, std::vector< SolnMetaData > &smdv, int verblevel=0) |
void | TRAIL_Window2UnstructuredMesh (const std::string &wname, std::vector< Mesh::UnstructuredMesh > &meshes, std::vector< SolnMetaData > &smdv, std::vector< std::vector< std::vector< double > > > &soln_data, int verb=0, bool no_ghost=false) |
void TRAIL_AutoSurfer | ( | const std::string & | src, |
const std::string & | trg, | ||
const std::string & | srcpath = "." , |
||
const std::string & | trgpath = "." , |
||
const std::string & | destpath = "." , |
||
double | t = 0 , |
||
MPI_Comm | comm = MPI_COMM_NULL , |
||
std::ostream * | = NULL |
||
) |
Definition at line 2544 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_set_default_communicator(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, TRAIL_CD(), TRAIL_CreateRobustFC(), TRAIL_CWD(), TRAIL_File2Window(), and TRAIL_TimeString().
Referenced by TRAIL_RemeshAutoSurfer().
void TRAIL_CreateRobustFC | ( | const std::string & | wname, |
const std::string & | path | ||
) |
Definition at line 2515 of file TRAIL.C.
Referenced by TRAIL_AutoSurfer().
void TRAIL_Debug | ( | GEM_Partition & | gp | ) |
Definition at line 60 of file TRAIL.C.
References GEM_Partition::_comm, GEM_Partition::_id, GEM_Partition::_out, GEM_Partition::debug(), rank, and TRAIL_CreateDirectory().
int TRAIL_FD2FE_Transfer | ( | const std::string & | , |
const std::string & | , | ||
const std::string & | , | ||
std::ostream * | ouf = NULL |
||
) |
Definition at line 1183 of file TRAIL.C.
References COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_communicator(), COM_get_panes(), COM_get_sizeof(), COM_new_attribute(), COM_resize_array(), COM_window_init_done(), Mesh::BSExtent< T >::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), i, Mesh::BSExtent< T >::NNodes(), Mesh::BSExtent< T >::Overlap(), pi, rank, TRAIL_Add_Attributes(), TRAIL_Att2Vec(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FD2FE_WinCreate | ( | const std::string & | wname, |
const std::string & | outwname, | ||
std::ostream * | ouf | ||
) |
Adds ghost zones for block structured meshes to close gaps in the interface surface mesh.
Needs the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Patch Extent: local_patch_extent [istart,iend,jstart,jend,kstart,kend] (global indices for local patch extent) Global Patch Extent: global_patch_extent [istart,iend,jstart,jend,kstart,kend]
Definition at line 565 of file TRAIL.C.
References COM_get_array(), COM_get_communicator(), COM_get_panes(), COM_INTEGER, COM_new_attribute(), COM_new_window(), COM_resize_array(), COM_set_size(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::Flatten(), Mesh::Connectivity::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), max(), Mesh::Connectivity::Nelem(), ni, Mesh::BSExtent< T >::NNodes(), pi, rank, Mesh::BSExtent< T >::Sync(), TRAIL_Copy2Attribute(), TRAIL_ExtractPanes(), TRAIL_Get_Block_Structured_Neighbors(), TRAIL_GetPanelAttribute(), TRAIL_SetAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FD2FE_WinCreate2 | ( | const std::string & | wname, |
const std::string & | outwname, | ||
std::ostream * | ouf | ||
) |
Takes as input a block structured FD grid.
An FD grid is one in which the partitioning is node based instead of element based as in an FE mesh - and produces a FE representation of the mesh, including a description of the shared vertices. Attributes can then be moved back and forth between the two representations easily.
Needs the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Patch Extent: local_patch_extent [istart,iend,jstart,jend,kstart,kend] (global indices for local patch extent) Global Patch Extent: global_patch_extent [istart,iend,jstart,jend,kstart,kend]
The output window has not transferred any of the non-mesh attributes. (Currently needs NC transferred) Produces the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Extent: local_extent Global Extent: global_extent Shared Extent: shared_extent[local_extent1 local_extent2 .... local_extent_n] Shared Panes: shared_panes[pane1 pane2 .... pane_n]
Definition at line 1652 of file TRAIL.C.
References COM_get_array(), COM_get_attribute_handle(), COM_get_communicator(), COM_get_panes(), COM_INTEGER, COM_new_attribute(), COM_new_window(), COM_resize_array(), COM_set_size(), COM_window_init_done(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::FindSharedNodes(), Mesh::BSExtent< T >::Flatten(), Mesh::Connectivity::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), Mesh::Connectivity::Nelem(), Mesh::BSExtent< T >::NNodes(), pi, rank, Mesh::GenericCell_2::ReOrient(), Mesh::BSExtent< T >::Sync(), Mesh::Connectivity::Sync(), Mesh::Connectivity::SyncSizes(), TRAIL_Copy2Attribute(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), TRAIL_SetAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FE2FD_Transfer | ( | const std::string & | fewin, |
const std::string & | fdwin, | ||
const std::string & | attlist, | ||
MPI_Comm | communicator, | ||
std::ostream * | ouf = NULL |
||
) |
Definition at line 974 of file TRAIL.C.
References COM_call_function(), COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_default_communicator(), COM_get_function_handle(), COM_get_panes(), COM_get_sizeof(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_set_default_communicator(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, Mesh::BSExtent< T >::GetFlatIndices(), pi, rank, TRAIL_Att2Vec(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), and TRAIL_UniqueAcrossProcs().
void TRAIL_File2Window | ( | const std::string & | fname, |
const std::string & | wname, | ||
std::vector< int > & | bcflags, | ||
MPI_Comm | comm = MPI_COMM_NULL , |
||
bool | apply_disp = false , |
||
bool | all = false , |
||
bool | with_ghost = false |
||
) |
Definition at line 2391 of file TRAIL.C.
References COM_call_function(), COM_clone_attribute(), COM_delete_attribute(), COM_delete_pane(), COM_delete_window(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_window(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, COM_window_init_done(), and i.
Referenced by TRAIL_AutoSurfer(), and TRAIL_TransferSurfDataFILE().
void TRAIL_GetRocstarDumpStrings | ( | const std::string & | filename, |
std::string & | wname, | ||
std::string & | timestring, | ||
std::string & | rankstring | ||
) |
void TRAIL_GetWindowSolnData | ( | const std::string & | wname, |
std::vector< std::vector< std::vector< double > > > & | soln_data, | ||
std::vector< SolnMetaData > & | smdv, | ||
int | verblevel = 0 |
||
) |
Definition at line 2305 of file TRAIL.C.
References COM_get_attributes(), COM_get_panes(), and COM_get_size().
Referenced by TRAIL_Window2UnstructuredMesh().
void TRAIL_GetWindowSolnMetaData | ( | const std::string & | wname, |
std::vector< SolnMetaData > & | smdv, | ||
int | verblevel = 0 |
||
) |
Definition at line 2260 of file TRAIL.C.
References COM_DOUBLE, COM_get_attribute(), and COM_get_attributes().
Referenced by TRAIL_Window2UnstructuredMesh().
void TRAIL_HDF2Window | ( | const std::string & | fname, |
const std::string & | wname, | ||
int | verb = 0 |
||
) |
Definition at line 2229 of file TRAIL.C.
References COM_call_function(), COM_clone_attribute(), COM_delete_attribute(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_window(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, and COM_window_init_done().
void TRAIL_MergeRocinFiles | ( | const std::string & | srcname, |
const std::string & | trgname, | ||
const std::string & | path = "./" , |
||
double | t = 0 , |
||
unsigned int | np = 1 , |
||
std::ostream * | = NULL |
||
) |
Definition at line 2476 of file TRAIL.C.
References TRAIL_CD(), TRAIL_CWD(), and TRAIL_TimeString().
Referenced by TRAIL_RemeshFixRocstarFiles(), and TRAIL_WriteWindow().
void TRAIL_RocmopSmooth | ( | GEM_Partition & | gp, |
unsigned int | niter | ||
) |
Definition at line 2992 of file TRAIL.C.
References GEM_Partition::_comm, GEM_Partition::_debug, GEM_Partition::_nc, GEM_Partition::_out, COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_new_window(), COM_set_array(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, COM_window_init_done(), n, GEM_Partition::pane_id, and GEM_Partition::PopulateVolumeWindow().
void TRAIL_RocpropSmoothSurf | ( | double * | nc, |
unsigned int | nnodes, | ||
unsigned int * | ec, | ||
unsigned int | nel, | ||
unsigned int * | cnstr_type, | ||
unsigned int | niter | ||
) |
Definition at line 3057 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_get_attribute_handle(), COM_get_function_handle(), COM_INT, COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_new_window(), COM_set_array(), COM_set_size(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, and MPI_COMM_SELF.
int TRAIL_SurfaceMesh2Window | ( | const std::string & | wname, |
int | pane_id, | ||
Mesh::NodalCoordinates & | , | ||
Mesh::Connectivity & | |||
) |
Creates a window from a Mesh object. (copies data)
Definition at line 414 of file TRAIL.C.
References Mesh::Connectivity::AddElement(), COM_get_array(), COM_new_window(), COM_resize_array(), COM_set_size(), COM_window_init_done(), Mesh::Connectivity::Nelem(), and Mesh::NodalCoordinates::Size().
Referenced by main().
std::string TRAIL_TimeString | ( | double | t | ) |
Definition at line 85 of file TRAIL.C.
Referenced by TRAIL_AutoSurfer(), TRAIL_FindSourceTime(), TRAIL_MergeRocinFiles(), TRAIL_RemeshAutoSurfer(), TRAIL_RemeshShuffle(), TRAIL_RemeshWrite(), TRAIL_TransferSurfDataFILE(), and TRAIL_WriteWindow().
double TRAIL_TimeString | ( | const std::string & | ) |
Definition at line 95 of file TRAIL.C.
References Mesquite::pow(), and x.
bool TRAIL_TransferSurfDataFILE | ( | const std::string & | src, |
const std::string & | trg, | ||
const std::string & | dest, | ||
const std::string & | srcpath, | ||
const std::string & | trgpath, | ||
const std::string & | destpath, | ||
const std::string & | crpath, | ||
double | t, | ||
unsigned int | id, | ||
MPI_Comm | comm, | ||
std::ostream * | = NULL |
||
) |
Definition at line 2620 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_free_buffer(), COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_attributes(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_resize_array(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, MPI_COMM_WORLD, rank, TRAIL_CD(), TRAIL_CWD(), TRAIL_ExtractSurf0(), TRAIL_File2Window(), TRAIL_FixRocstarData(), TRAIL_TimeString(), and TRAIL_WriteWindow().
Referenced by TRAIL_RemeshAutoSurfer().
int TRAIL_UnstructuredMesh2Pane | ( | const std::string & | wname, |
int | pane_id, | ||
Mesh::UnstructuredMesh & | mesh, | ||
SolnMetaData & | smdv, | ||
std::vector< std::vector< double > > & | soln_data, | ||
int | verblevel | ||
) |
Creates a window from a Mesh object. (copies data)
Definition at line 473 of file TRAIL.C.
References Mesh::Connectivity::AddElement(), COM_get_array(), COM_resize_array(), COM_set_size(), Mesh::UnstructuredMesh::con, Mesh::UnstructuredMesh::nc, Mesh::Connectivity::Nelem(), and Mesh::NodalCoordinates::Size().
void TRAIL_Window2UnstructuredMesh | ( | const std::string & | wname, |
std::vector< Mesh::UnstructuredMesh > & | meshes, | ||
std::vector< SolnMetaData > & | smdv, | ||
std::vector< std::vector< std::vector< double > > > & | soln_data, | ||
int | verb = 0 , |
||
bool | no_ghost = false |
||
) |
Definition at line 2010 of file TRAIL.C.
References COM_get_panes(), COM_get_size(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::GetFlatIndices(), i, TRAIL_GetWindowSolnData(), and TRAIL_GetWindowSolnMetaData().
void TRAIL_WriteRocinControl | ( | std::vector< int > & | pane_id, |
const std::string & | pre, | ||
int | rank | ||
) |
Definition at line 2793 of file TRAIL.C.
Referenced by TRAIL_WriteWindow().
bool TRAIL_WriteWindow | ( | const std::string & | wname, |
const std::string & | path, | ||
const std::string & | twin, | ||
const std::string & | tpath, | ||
double | t, | ||
unsigned int | id, | ||
MPI_Comm | comm, | ||
std::ostream * | = NULL |
||
) |
Definition at line 2811 of file TRAIL.C.
References COM_call_function(), COM_free_buffer(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, id(), rank, TRAIL_CD(), TRAIL_CWD(), TRAIL_MergeRocinFiles(), TRAIL_TimeString(), and TRAIL_WriteRocinControl().
Referenced by main(), TRAIL_TransferSurfDataFILE(), and GEM_Partition::WriteRocstar().