Go to the documentation of this file.00001 #ifndef CHEF_H
00002 #define CHEF_H
00003
00007 #include <apf.h>
00008 #include <apfMesh2.h>
00009 #include <gmi.h>
00010 #include <phInput.h>
00011
00012 struct RStream;
00013 struct GRStream;
00014 namespace chef {
00016 void cook(gmi_model*& g, apf::Mesh2*& m);
00018 void cook(gmi_model*& g, apf::Mesh2*& m, ph::Input& ctrl);
00020 void cook(gmi_model*& g, apf::Mesh2*& m,
00021 ph::Input& ctrl, RStream* in);
00023 void cook(gmi_model*& g, apf::Mesh2*& m,
00024 ph::Input& ctrl, GRStream* out);
00026 void cook(gmi_model*& g, apf::Mesh2*& m,
00027 ph::Input& ctrl, RStream* in, GRStream* out);
00029 apf::Field* extractField(apf::Mesh* m,
00030 const char* packedFieldname,
00031 const char* requestFieldname,
00032 int firstComp,
00033 int numOfComp,
00034 bool simField = false);
00036 apf::Field* combineField(apf::Mesh* m,
00037 const char* packedFieldname,
00038 const char* inFieldname1,
00039 const char* inFieldname2,
00040 const char* inFieldname3);
00042 void readAndAttachFields(ph::Input& ctrl, apf::Mesh2*& m);
00044 void balanceAndReorder(ph::Input& ctrl, apf::Mesh2* m);
00046 void balance(ph::Input& ctrl, apf::Mesh2* m);
00048 void adapt(apf::Mesh2* m, apf::Field* szFld);
00050 void adapt(apf::Mesh2* m, apf::Field* szFld, ph::Input& ctrl);
00052 void uniformRefinement(ph::Input& ctrl, apf::Mesh2* m);
00054 void preprocess(apf::Mesh2*& m, ph::Input& ctrl);
00056 void preprocess(apf::Mesh2*& m, ph::Input& ctrl, GRStream* out);
00057 }
00058
00059 #endif