IFEM  90A354
SIMMultiPatchModelGen.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _SIM_MULTI_PATCH_MODEL_GEN_H_
15 #define _SIM_MULTI_PATCH_MODEL_GEN_H_
16 
17 #include <vector>
18 
19 class ModelGenerator;
20 namespace tinyxml2 { class XMLElement; }
21 
22 
27 template<class Dim>
28 class SIMMultiPatchModelGen : public Dim
29 {
30 protected:
34  explicit SIMMultiPatchModelGen(int n1, bool checkRHS = false) : Dim(n1,checkRHS) {}
35 
39  explicit SIMMultiPatchModelGen(const std::vector<unsigned char>& unf,
40  bool checkRHS = false) : Dim(unf,checkRHS) {}
41 
44  virtual ModelGenerator* getModelGenerator(const tinyxml2::XMLElement* geo) const;
45 };
46 
47 #endif
Base class for model generators for FEM simulators.
Definition: ModelGenerator.h:29
Inherit this class to equip your SIM with multi-patch model generators.
Definition: SIMMultiPatchModelGen.h:29
virtual ModelGenerator * getModelGenerator(const tinyxml2::XMLElement *geo) const
Instantiates a FEM model generator for a multi-patch model.
SIMMultiPatchModelGen(const std::vector< unsigned char > &unf, bool checkRHS=false)
Constructor for mixed problems.
Definition: SIMMultiPatchModelGen.h:39
SIMMultiPatchModelGen(int n1, bool checkRHS=false)
Constructor for standard problems.
Definition: SIMMultiPatchModelGen.h:34