HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_ReinitializeSDF.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_ReinitializeSDF.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_ReinitializeSDF__
12 #define __GAS_ReinitializeSDF__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
20 {
21 public:
22  GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
23 
24  GET_DATA_FUNC_B("rebuildsdf", RebuildSDF);
25  GET_DATA_FUNC_B("fixsigns", FixSigns);
26  GET_DATA_FUNC_B("reinitializesdf", ReinitializeSDF);
27  GET_DATA_FUNC_I("reinitializeiter", ReinitializeIterations);
28  GET_DATA_FUNC_I("integratetype", IntegrateType);
29  GET_DATA_FUNC_B("usebandwidth", UseBandwidth);
30  GET_DATA_FUNC_F("bandwidth", Bandwidth);
31 
32 protected:
33  explicit GAS_ReinitializeSDF(const SIM_DataFactory *factory);
34  virtual ~GAS_ReinitializeSDF();
35 
36  /// Adds to the velocity field the effect of all forces at that point.
37  /// Unit density is currently assumed.
38  /// Only incorpreates the external simulation forces. Internal
39  /// gas forces are handled elsewher.
40  virtual bool solveGasSubclass(SIM_Engine &engine,
41  SIM_Object *obj,
42  SIM_Time time,
43  SIM_Time timestep);
44 
45  /// Reinitizalizes a Signed Distance Field from the zero contour.
46  void rebuildSDF(SIM_ScalarField *surface);
47 
48 private:
49  static const SIM_DopDescription *getDopDescription();
50 
54  "Gas Reinitialize SDF",
55  getDopDescription());
56 };
57 
58 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
#define GAS_NAME_FIELD
Definition: GAS_Utils.h:25
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
This class holds a three dimensional scalar field.
#define GET_DATA_FUNC_S(DataName, FuncName)