MeshKit
1.0
|
#include <AssyGen.hpp>
Public Types | |
enum | ErrorStates { PINCELLS, INVALIDINPUT, EMAT, EGEOMTYPE, EGEOMENGINE, ENEGATIVE, EALIAS, EPIN } |
Public Member Functions | |
AssyGen (MKCore *mk, const MEntVector &me_vec) | |
virtual | ~AssyGen () |
virtual const moab::EntityType * | mesh_types_arr () const |
Return the mesh entity types operated on by this scheme. | |
virtual bool | add_modelent (ModelEnt *model_ent) |
Re-implemented here so we can check topological dimension of model_ent. | |
virtual void | setup_this () |
Setup is a no-op, but must be provided since it's pure virtual. | |
virtual void | execute_this () |
The only setup/execute function we need, since meshing vertices is trivial. | |
void | PrepareIO (int argc, char *argv[], std::string TestDir) |
Prepare input/output files for reading/writing command line args and testdir for default test case. | |
void | ReadInputPhase1 () |
Read the command based text input file input file. | |
void | ReadAndCreate () |
Keep reading input file and create input file. | |
void | Name_Faces (const std::string sMatName, const iBase_EntityHandle body, iBase_TagHandle this_tag) |
Name the surface created material name from input file, surface entity, name tag. | |
void | Center_Assm (char &) |
Move the assembly to the center direction. | |
void | Section_Assm (char &, double &, const std::string) |
Section assembly direction, offset, reverse/forward. | |
void | Rotate_Assm (char &, double &) |
Rotate assembly direction, angle. | |
void | Move_Assm (double &, double &, double &) |
Move assembly X, Y, Z distance. | |
void | Create_HexAssm (std::string &) |
Create hexagonal assembly data from input file. | |
void | Create_CartAssm (std::string &) |
Create cartesian or rectangular assembly data from input file. | |
void | CreateOuterCovering () |
Create outermost ducts data from input file. | |
void | Imprint_Merge () |
Merge and impring the geometry creaed geometry created. | |
void | Subtract_Pins () |
Subtract the pins from innermost duct geometry entities. | |
void | Create2DSurf () |
Get the top surface from 3D assembly geometry pins, ducts. | |
void | ReadPinCellData (int i) |
Read pincell data input file. | |
void | CreatePinCell_Intersect (int i, double dX, double dY, double dZ) |
Create pincell i, pincell intersects the assembly i and location. | |
void | CreatePinCell (int i, double dX, double dY, double dZ) |
Create pincell i i and location. | |
void | CreateCubitJournal () |
Write cubit journal file information read from text based input file. | |
void | ComputePinCentroid (int, CMatrix< std::string >, int, int, double &, double &, double &) |
Computes the location of the pincells in the assembly pin-number and location of the pincell. | |
Static Public Member Functions | |
static const char * | name () |
Get class name. | |
static bool | can_mesh (iBase_EntityType dim) |
Function returning whether this scheme can mesh entities of t the specified dimension. | |
static bool | can_mesh (ModelEnt *me) |
Function returning whether this scheme can mesh the specified entity. | |
static const moab::EntityType * | output_types () |
Get list of mesh entity types that can be generated. | |
Private Member Functions | |
void | IOErrorHandler (ErrorStates) const |
Private Attributes | |
iGeom * | igeomImpl |
int | m_nSides |
std::ifstream | m_FileInput |
std::ofstream | m_FileOutput |
std::ofstream | m_SchemesFile |
std::string | m_szFile |
std::string | m_szInFile |
std::string | m_szGeomFile |
std::string | m_szJouFile |
std::string | m_szSchFile |
CMatrix< std::string > | m_Assembly |
CMatrix< double > | m_dMTopSurfCoords |
CMatrix< double > | m_dMAssmPitch |
CMatrix< double > | m_dMAssmPitchX |
CMatrix< double > | m_dMAssmPitchY |
CMatrix< double > | m_dMXYAssm |
CMatrix< double > | m_dMZAssm |
CVector< std::string > | m_szAssmMat |
CVector< std::string > | m_szAssmMatAlias |
CMatrix< std::string > | m_szMMAlias |
CVector< CPincell > | m_Pincell |
std::string | m_szEngine |
std::string | m_szGeomType |
std::string | m_szMeshType |
std::string | m_szSideset |
int | m_nAssemblyMat |
int | m_nDimensions |
int | m_nPincells |
int | m_nAssmVol |
int | m_nPin |
int | m_nPinX |
int | m_nPinY |
int | err |
int | m_nLineNumber |
int | m_nPlanar |
int | m_nNeumannSetId |
int | m_nMaterialSetId |
int | m_nDuct |
int | m_nDuctNum |
int | m_nJouFlag |
double | m_dPitch |
double | pi |
double | m_dRadialSize |
double | m_dAxialSize |
double | m_dTetMeshSize |
double | m_dMergeTol |
std::vector< iBase_EntityHandle > | assms |
std::vector< iBase_EntityHandle > | in_pins |
iBase_EntitySetHandle | root_set |
std::string | szInputString |
std::string | szComment |
int | MAXCHARS |
Friends | |
class | CPincell |
Definition at line 51 of file AssyGen.hpp.
enum ErrorStates |
Definition at line 65 of file AssyGen.hpp.
AssyGen | ( | MKCore * | mk, |
const MEntVector & | me_vec | ||
) |
Definition at line 14 of file AssyGen.cpp.
~AssyGen | ( | ) | [virtual] |
Definition at line 39 of file AssyGen.cpp.
bool add_modelent | ( | ModelEnt * | model_ent | ) | [virtual] |
Re-implemented here so we can check topological dimension of model_ent.
model_ent | ModelEnt being added |
Reimplemented from MeshOp.
Definition at line 42 of file AssyGen.cpp.
bool can_mesh | ( | iBase_EntityType | dim | ) | [inline, static] |
Function returning whether this scheme can mesh entities of t the specified dimension.
dim | entity dimension |
Definition at line 271 of file AssyGen.hpp.
Function returning whether this scheme can mesh the specified entity.
Used by MeshOpFactory to find scheme for an entity.
me | ModelEnt being queried |
Definition at line 276 of file AssyGen.hpp.
void Center_Assm | ( | char & | rDir | ) |
Move the assembly to the center direction.
Definition at line 1583 of file AssyGen.cpp.
void ComputePinCentroid | ( | int | nTempPin, |
CMatrix< std::string > | MAssembly, | ||
int | m, | ||
int | n, | ||
double & | dX, | ||
double & | dY, | ||
double & | dZ | ||
) |
Computes the location of the pincells in the assembly pin-number and location of the pincell.
Definition at line 1386 of file AssyGen.cpp.
void Create2DSurf | ( | ) |
Get the top surface from 3D assembly geometry pins, ducts.
Definition at line 2145 of file AssyGen.cpp.
void Create_CartAssm | ( | std::string & | szInputString | ) |
Create cartesian or rectangular assembly data from input file.
Definition at line 1848 of file AssyGen.cpp.
void Create_HexAssm | ( | std::string & | szInputString | ) |
Create hexagonal assembly data from input file.
Definition at line 1740 of file AssyGen.cpp.
void CreateCubitJournal | ( | ) |
Write cubit journal file information read from text based input file.
Definition at line 853 of file AssyGen.cpp.
void CreateOuterCovering | ( | ) |
Create outermost ducts data from input file.
Definition at line 1955 of file AssyGen.cpp.
void CreatePinCell | ( | int | i, |
double | dX, | ||
double | dY, | ||
double | dZ | ||
) |
Create pincell i i and location.
Definition at line 2227 of file AssyGen.cpp.
void CreatePinCell_Intersect | ( | int | i, |
double | dX, | ||
double | dY, | ||
double | dZ | ||
) |
Create pincell i, pincell intersects the assembly i and location.
Definition at line 2497 of file AssyGen.cpp.
void execute_this | ( | ) | [virtual] |
The only setup/execute function we need, since meshing vertices is trivial.
Implements GraphNode.
Definition at line 78 of file AssyGen.cpp.
void Imprint_Merge | ( | ) |
Merge and impring the geometry creaed geometry created.
Definition at line 2115 of file AssyGen.cpp.
void IOErrorHandler | ( | ErrorStates | ECode | ) | const [private] |
Definition at line 1460 of file AssyGen.cpp.
const moab::EntityType * mesh_types_arr | ( | ) | const [inline, virtual] |
Return the mesh entity types operated on by this scheme.
moab::MBMAXTYPE
Implements MeshOp.
Definition at line 281 of file AssyGen.hpp.
void Move_Assm | ( | double & | dX, |
double & | dY, | ||
double & | dZ | ||
) |
Move assembly X, Y, Z distance.
Definition at line 1720 of file AssyGen.cpp.
const char * name | ( | ) | [inline, static] |
Get class name.
Definition at line 266 of file AssyGen.hpp.
void Name_Faces | ( | const std::string | sMatName, |
const iBase_EntityHandle | body, | ||
iBase_TagHandle | this_tag | ||
) |
Name the surface created material name from input file, surface entity, name tag.
Definition at line 1493 of file AssyGen.cpp.
const moab::EntityType * output_types | ( | ) | [static] |
Get list of mesh entity types that can be generated.
moab::MBMAXTYPE
Definition at line 11 of file AssyGen.cpp.
void PrepareIO | ( | int | argc, |
char * | argv[], | ||
std::string | TestDir | ||
) |
Prepare input/output files for reading/writing command line args and testdir for default test case.
Definition at line 82 of file AssyGen.cpp.
void ReadAndCreate | ( | ) |
Keep reading input file and create input file.
Definition at line 557 of file AssyGen.cpp.
void ReadInputPhase1 | ( | ) |
Read the command based text input file input file.
Definition at line 198 of file AssyGen.cpp.
void ReadPinCellData | ( | int | i | ) |
Read pincell data input file.
Definition at line 300 of file AssyGen.cpp.
void Rotate_Assm | ( | char & | cDir, |
double & | dAngle | ||
) |
Rotate assembly direction, angle.
Definition at line 1690 of file AssyGen.cpp.
void Section_Assm | ( | char & | cDir, |
double & | dOffset, | ||
const std::string | szReverse | ||
) |
Section assembly direction, offset, reverse/forward.
Definition at line 1625 of file AssyGen.cpp.
void setup_this | ( | ) | [virtual] |
Setup is a no-op, but must be provided since it's pure virtual.
Implements GraphNode.
Definition at line 47 of file AssyGen.cpp.
void Subtract_Pins | ( | ) |
Subtract the pins from innermost duct geometry entities.
Definition at line 2062 of file AssyGen.cpp.
friend class CPincell [friend] |
Definition at line 257 of file AssyGen.hpp.
std::vector<iBase_EntityHandle> assms [private] |
Definition at line 250 of file AssyGen.hpp.
int err [private] |
Definition at line 243 of file AssyGen.hpp.
Definition at line 206 of file AssyGen.hpp.
std::vector<iBase_EntityHandle> in_pins [private] |
Definition at line 250 of file AssyGen.hpp.
CMatrix<std::string> m_Assembly [private] |
Definition at line 221 of file AssyGen.hpp.
double m_dAxialSize [private] |
Definition at line 247 of file AssyGen.hpp.
CMatrix<double> m_dMAssmPitch [private] |
Definition at line 227 of file AssyGen.hpp.
CMatrix<double> m_dMAssmPitchX [private] |
Definition at line 227 of file AssyGen.hpp.
CMatrix<double> m_dMAssmPitchY [private] |
Definition at line 227 of file AssyGen.hpp.
double m_dMergeTol [private] |
Definition at line 247 of file AssyGen.hpp.
CMatrix<double> m_dMTopSurfCoords [private] |
Definition at line 224 of file AssyGen.hpp.
CMatrix<double> m_dMXYAssm [private] |
Definition at line 227 of file AssyGen.hpp.
Definition at line 227 of file AssyGen.hpp.
double m_dPitch [private] |
Definition at line 247 of file AssyGen.hpp.
double m_dRadialSize [private] |
Definition at line 247 of file AssyGen.hpp.
double m_dTetMeshSize [private] |
Definition at line 247 of file AssyGen.hpp.
std::ifstream m_FileInput [private] |
Definition at line 212 of file AssyGen.hpp.
std::ofstream m_FileOutput [private] |
Definition at line 215 of file AssyGen.hpp.
int m_nAssemblyMat [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nAssmVol [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nDimensions [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nDuct [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nDuctNum [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nJouFlag [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nLineNumber [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nMaterialSetId [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nNeumannSetId [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nPin [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nPincells [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nPinX [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nPinY [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nPlanar [private] |
Definition at line 243 of file AssyGen.hpp.
int m_nSides [private] |
Definition at line 209 of file AssyGen.hpp.
Definition at line 234 of file AssyGen.hpp.
std::ofstream m_SchemesFile [private] |
Definition at line 215 of file AssyGen.hpp.
CVector<std::string> m_szAssmMat [private] |
Definition at line 230 of file AssyGen.hpp.
CVector<std::string> m_szAssmMatAlias [private] |
Definition at line 230 of file AssyGen.hpp.
std::string m_szEngine [private] |
Definition at line 237 of file AssyGen.hpp.
std::string m_szFile [private] |
Definition at line 218 of file AssyGen.hpp.
std::string m_szGeomFile [private] |
Definition at line 218 of file AssyGen.hpp.
std::string m_szGeomType [private] |
Definition at line 238 of file AssyGen.hpp.
std::string m_szInFile [private] |
Definition at line 218 of file AssyGen.hpp.
std::string m_szJouFile [private] |
Definition at line 218 of file AssyGen.hpp.
std::string m_szMeshType [private] |
Definition at line 239 of file AssyGen.hpp.
CMatrix<std::string> m_szMMAlias [private] |
Definition at line 231 of file AssyGen.hpp.
std::string m_szSchFile [private] |
Definition at line 218 of file AssyGen.hpp.
std::string m_szSideset [private] |
Definition at line 240 of file AssyGen.hpp.
int MAXCHARS [private] |
Definition at line 262 of file AssyGen.hpp.
double pi [private] |
Definition at line 247 of file AssyGen.hpp.
iBase_EntitySetHandle root_set [private] |
Definition at line 252 of file AssyGen.hpp.
std::string szComment [private] |
Definition at line 261 of file AssyGen.hpp.
std::string szInputString [private] |
Definition at line 260 of file AssyGen.hpp.