mantaflow  0.10
A framework for fluid simulation
levelset.h
Go to the documentation of this file.
1 
2 /******************************************************************************
3  *
4  * MantaFlow fluid solver framework
5  * Copyright 2011 Tobias Pfaff, Nils Thuerey
6  *
7  * This program is free software, distributed under the terms of the
8  * GNU General Public License (GPL)
9  * http://www.gnu.org/licenses
10  *
11  * Levelset
12  *
13  ******************************************************************************/
14 
15 #ifndef _LEVELSET_H_
16 #define _LEVELSET_H_
17 
18 #include "grid.h"
19 
20 namespace Manta {
21 class Mesh;
22 
25 PYTHON class LevelsetGrid : public Grid<Real> {
26 public:
27  PYTHON() LevelsetGrid(FluidSolver* parent, bool show = true);
28 
30  PYTHON() void reinitMarching(const FlagGrid& flags, Real maxTime=4.0,
31  MACGrid* velTransport=NULL, bool ignoreWalls=false, bool correctOuterLayer=true,
32  int obstacleType = FlagGrid::TypeObstacle );
33 
35  PYTHON() void createMesh(Mesh& mesh);
36 
38  PYTHON() void join(const LevelsetGrid& o);
39  PYTHON() void subtract(const LevelsetGrid& o);
40 
42  PYTHON() void initFromFlags(const FlagGrid& flags, bool ignoreWalls=false);
43 
44  static Real invalidTimeValue();
45 };
46 
47 } //namespace
48 #endif
49 
50 
Definition: commonkernels.h:22
Definition: grid.h:267
Definition: fileio.h:25
Definition: grid.h:229
PYTHON() LevelsetGrid(FluidSolver *parent
calculate L1 norm of grid content
Triangle mesh class.
Definition: mesh.h:126
Definition: levelset.h:25
Definition: fluidsolver.h:28