Skip to content

Commit f840ccb

Browse files
committed
- added documentation about how to implement an exporter
- added a Python data exporter example (can export rigid bodies in all formats supported by meshio) - added an OBJ rigid body exporter - implemented a simple interface to register own particle and rigid body exporters - extracted the scene configuration in a singleton class - simplified the interface to register a new non-pressure force
1 parent 63f16d7 commit f840ccb

File tree

62 files changed

+2122
-1286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2122
-1286
lines changed

Changelog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
- added documentation about how to implement an exporter
2+
- added a Python data exporter example (can export rigid bodies in all formats supported by meshio)
3+
- added an OBJ rigid body exporter
4+
- implemented a simple interface to register own particle and rigid body exporters
5+
- extracted the scene configuration in a singleton class
6+
- simplified the interface to register a new non-pressure force
7+
18
2.9.0
29
- added new surface tension model (thanks to Fernando Zorilla and Marcel Ritter)
310
- added a test for reading and writing the state of a simulation

SPlisHSPlasH/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ add_library(SPlisHSPlasH
198198
FluidModel.cpp
199199
FluidModel.h
200200
RigidBodyObject.h
201+
NonPressureForceRegistration.cpp
201202
SPHKernels.cpp
202203
SPHKernels.h
203204
StaticRigidBody.h

SPlisHSPlasH/Drag/DragForce_Gissler2017.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ namespace SPH
2929
DragForce_Gissler2017(FluidModel *model);
3030
virtual ~DragForce_Gissler2017(void);
3131

32+
static NonPressureForceBase* creator(FluidModel* model) { return new DragForce_Gissler2017(model); }
33+
3234
virtual void step();
3335
virtual void reset();
3436
};

SPlisHSPlasH/Drag/DragForce_Macklin2014.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ namespace SPH
1919
DragForce_Macklin2014(FluidModel *model);
2020
virtual ~DragForce_Macklin2014(void);
2121

22+
static NonPressureForceBase* creator(FluidModel* model) { return new DragForce_Macklin2014(model); }
23+
2224
virtual void step();
2325
virtual void reset();
2426
};

SPlisHSPlasH/Elasticity/Elasticity_Becker2009.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ namespace SPH
5353
Elasticity_Becker2009(FluidModel *model);
5454
virtual ~Elasticity_Becker2009(void);
5555

56+
static NonPressureForceBase* creator(FluidModel* model) { return new Elasticity_Becker2009(model); }
57+
5658
virtual void step();
5759
virtual void reset();
5860
virtual void performNeighborhoodSearchSort();

SPlisHSPlasH/Elasticity/Elasticity_Peer2018.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ namespace SPH
6666
Elasticity_Peer2018(FluidModel *model);
6767
virtual ~Elasticity_Peer2018(void);
6868

69+
static NonPressureForceBase* creator(FluidModel* model) { return new Elasticity_Peer2018(model); }
70+
6971
virtual void step();
7072
virtual void reset();
7173
virtual void performNeighborhoodSearchSort();

0 commit comments

Comments
 (0)