00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_StrainForces__
00020 #define __GAS_StrainForces__
00021
00022 #include "GAS_API.h"
00023
00024 #include "GAS_SubSolver.h"
00025 #include "GAS_Utils.h"
00026
00027 class SIM_VectorField;
00028 class SIM_ScalarField;
00029
00030 class GAS_API GAS_StrainForces : public GAS_SubSolver
00031 {
00032 public:
00033 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00034 GET_DATA_FUNC_S(GAS_NAME_STRAIN, StrainName);
00035 GET_DATA_FUNC_S(GAS_NAME_VELOCITY, VelocityName);
00036
00037 GETSET_DATA_FUNCS_F("elasticmodulus", ElasticModulus);
00038
00039 GET_DATA_FUNC_B(GAS_NAME_USETIMESTEP, UseTimeStep);
00040 GET_DATA_FUNC_F(GAS_NAME_TIMESCALE, TimeScale);
00041
00042 protected:
00043 explicit GAS_StrainForces(const SIM_DataFactory *factory);
00044 virtual ~GAS_StrainForces();
00045
00046
00047
00048 virtual bool solveGasSubclass(SIM_Engine &engine,
00049 SIM_Object *obj,
00050 SIM_Time time,
00051 SIM_Time timestep);
00052
00053
00054
00055 void addStrainForces(SIM_VectorField *velocity,
00056 SIM_ScalarField *surface,
00057 SIM_MatrixField *strain,
00058 fpreal timestep);
00059
00060 private:
00061 static const SIM_DopDescription *getDopDescription();
00062
00063 DECLARE_STANDARD_GETCASTTOTYPE();
00064 DECLARE_DATAFACTORY(GAS_StrainForces,
00065 GAS_SubSolver,
00066 "Gas Strain Forces",
00067 getDopDescription());
00068 };
00069
00070 #endif