29 #ifndef LEVEL_SET_SHAPE_H 30 #define LEVEL_SET_SHAPE_H 56 virtual bool checkContain(
const Vecd &input_pnt,
bool BOUNDARY_INCLUDED =
true)
override;
57 virtual Vecd findClosestPoint(
const Vecd &input_pnt)
override;
59 Vecd findLevelSetGradient(
const Vecd &input_pnt);
60 Real computeKernelIntegral(
const Vecd &input_pnt, Real h_ratio = 1.0);
61 Vecd computeKernelGradientIntegral(
const Vecd &input_pnt, Real h_ratio = 1.0);
64 void writeLevelSet(
SPHBody &sph_body);
72 #endif // LEVEL_SET_SHAPE_H Base class for all volumetric geometries Note that checkContain and findClosest point are basic funct...
Definition: base_geometry.h:64
LevelSetShape(SPHBody *sph_body, Shape &shape, Real refinement_ratio=1.0)
Definition: level_set_shape.cpp:15
A wrapper to provide an ownership for a new derived object which previous often generated by new a ra...
Definition: ownership.h:90
LevelSetShape * cleanLevelSet(Real small_shift_factor=1.0)
Definition: level_set_shape.cpp:31
BaseLevelSet * level_set_
Definition: level_set_shape.h:67
A shape using level set to define geometry.
Definition: level_set_shape.h:46
A abstract describes a level set field defined on a mesh.
Definition: level_set.h:83
Shape is the base class for all geometries.
SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...
Definition: base_body.h:61
Level set is a function which is defined as signed distance to a surface or interface.
Definition: solid_body_supplementary.cpp:9