HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
26  GET_DATA_FUNC_B("rebuildsdffastiterative", RebuildSDFWithFIM);
27  GET_DATA_FUNC_F("fimtolerance", FIMTolerance);
28  GET_DATA_FUNC_I("fimiterations", FIMIterations);
29 
30  GET_DATA_FUNC_B("fixsigns", FixSigns);
31  GET_DATA_FUNC_B("reinitializesdf", ReinitializeSDF);
32  GET_DATA_FUNC_I("reinitializeiter", ReinitializeIterations);
33  GET_DATA_FUNC_I("integratetype", IntegrateType);
34  GET_DATA_FUNC_B("usebandwidth", UseBandwidth);
35  GET_DATA_FUNC_F("bandwidth", Bandwidth);
36 
37 
38 protected:
39  explicit GAS_ReinitializeSDF(const SIM_DataFactory *factory);
40  virtual ~GAS_ReinitializeSDF();
41 
42  /// Adds to the velocity field the effect of all forces at that point.
43  /// Unit density is currently assumed.
44  /// Only incorpreates the external simulation forces. Internal
45  /// gas forces are handled elsewher.
46  virtual bool solveGasSubclass(SIM_Engine &engine,
47  SIM_Object *obj,
48  SIM_Time time,
49  SIM_Time timestep);
50 
51  /// Reinitizalizes a Signed Distance Field from the zero contour.
52  void rebuildSDF(SIM_ScalarField *surface);
53 
54 private:
55  static const SIM_DopDescription *getDopDescription();
56 
60  "Gas Reinitialize SDF",
61  getDopDescription());
62 };
63 
64 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
GT_API const UT_StringHolder time
#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)