SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
chef.h
Go to the documentation of this file.
1 #ifndef CHEF_H
2 #define CHEF_H
3 
7 #include <apf.h>
8 #include <apfMesh2.h>
9 #include <gmi.h>
10 #include <phInput.h>
11 
12 struct RStream;
13 struct GRStream;
14 namespace chef {
16  void cook(gmi_model*& g, apf::Mesh2*& m);
18  void cook(gmi_model*& g, apf::Mesh2*& m, ph::Input& ctrl);
20  void cook(gmi_model*& g, apf::Mesh2*& m,
21  ph::Input& ctrl, RStream* in);
23  void cook(gmi_model*& g, apf::Mesh2*& m,
24  ph::Input& ctrl, GRStream* out);
26  void cook(gmi_model*& g, apf::Mesh2*& m,
27  ph::Input& ctrl, RStream* in, GRStream* out);
29  apf::Field* extractField(apf::Mesh* m,
30  const char* packedFieldname,
31  const char* requestFieldname,
32  int firstComp,
33  int numOfComp,
34  bool simField = false);
36  apf::Field* combineField(apf::Mesh* m,
37  const char* packedFieldname,
38  const char* inFieldname1,
39  const char* inFieldname2,
40  const char* inFieldname3);
42  void readAndAttachFields(ph::Input& ctrl, apf::Mesh2*& m);
44  void balanceAndReorder(ph::Input& ctrl, apf::Mesh2* m);
46  void balance(ph::Input& ctrl, apf::Mesh2* m);
48  void adapt(apf::Mesh2* m, apf::Field* szFld);
50  void adapt(apf::Mesh2* m, apf::Field* szFld, ph::Input& ctrl);
52  void uniformRefinement(ph::Input& ctrl, apf::Mesh2* m);
54  void adaptLevelSet(ph::Input& ctrl, apf::Mesh2* m);
56  void preprocess(apf::Mesh2*& m, ph::Input& ctrl);
58  void preprocess(apf::Mesh2*& m, ph::Input& ctrl, GRStream* out);
59 }
60 
61 #endif
The APF Field interface.
void adapt(Mesh *m, IsotropicFunction *f, SolutionTransfer *s=0)
adapt based on an isotropic function
abstract Geometric Model Interface
The APF Mesh modification interface.
The Chef interface for execution control.
the basic structure for all GMI models
Definition: gmi.h:112
Interface to a mesh part.
Definition: apfMesh.h:103
User configuration for Chef execution.
Definition: phInput.h:21
Extended mesh interface for modification.
Definition: apfMesh2.h:29