00001 #ifndef PH_INPUT_H 00002 #define PH_INPUT_H 00003 00013 #include <string> 00014 00015 struct RStream; 00016 00017 namespace ph { 00018 00020 class Input 00021 { 00022 public: 00023 Input(); 00024 void load(const char* filename); 00025 int timeStepNumber; 00035 int ensa_dof; 00036 int ensa_melas_dof; 00043 std::string restartFileName; 00046 std::string attributeFileName; 00052 std::string meshFileName; 00054 std::string outMeshFileName; 00059 std::string modelFileName; 00060 std::string outputFormat; 00065 std::string partitionMethod; 00071 std::string preAdaptBalanceMethod; 00076 std::string midAdaptBalanceMethod; 00082 std::string postAdaptBalanceMethod; 00087 std::string prePhastaBalanceMethod; 00088 int adaptFlag; 00089 int rRead; 00090 int rStart; 00091 int adaptStrategy; 00092 double validQuality; 00093 double adaptErrorThreshold; 00094 std::string adaptErrorFieldName; 00095 int adaptErrorFieldIndex; 00096 int periodic; 00097 int prCD; 00098 int timing; 00099 int internalBCNodes; 00100 int writeDebugFiles; 00101 int phastaIO; 00102 int splitFactor; 00103 int solutionMigration; 00104 int useAttachedFields; 00105 int displacementMigration; 00106 int isReorder; 00108 int tetrahedronize; 00115 int localPtn; 00116 int recursiveUR; 00117 int dwalMigration; 00118 int buildMapping; 00119 int elementsPerMigration; 00120 int threaded; 00121 int initBubbles; 00122 int formElementGraph; 00123 int snap; 00124 int transferParametric; 00125 int splitAllLayerEdges; 00128 int filterMatches; 00129 int axisymmetry; 00130 int formEdges; 00131 int parmaLoops; 00132 int parmaVerbosity; 00135 int writeGeomBCFiles; 00136 int ramdisk; 00141 double meshqCrtn; 00142 double elementImbalance; 00143 double vertexImbalance; 00144 FILE* (*openfile_read)(Input& in, const char* path); 00145 RStream* rs; 00148 int simmetrixMesh; 00151 int maxAdaptIterations; 00152 double adaptShrinkLimit; 00154 int printIOtime; 00156 int mesh2geom; 00157 }; 00158 00159 int countNaturalBCs(Input& in); 00160 int countEssentialBCs(Input& in); 00161 int countScalarBCs(Input& in); 00162 00163 } 00164 00165 #endif 00166 00167