SPHinXsys
alpha version
|
Fixed memory level set data packed in a package. Level set is the signed distance to an interface, here, the surface of a body. More...
#include <level_set.h>
Inherits SPH::GridDataPackage< 4, 6 >.
Public Member Functions | |
LevelSetDataPackage () | |
void | registerAllVariables () |
void | initializeSingularData (Real far_field_level_set) |
void | initializeBasicData (Shape &shape) |
void | computeKernelIntegrals (LevelSet &level_set) |
void | computeLevelSetGradient () |
void | stepReinitialization () |
void | markNearInterface (Real small_shift_factor) |
Public Member Functions inherited from SPH::GridDataPackage< 4, 6 > | |
constexpr int | PackageSize () |
constexpr int | AddressSize () |
constexpr int | AddressBufferWidth () |
constexpr int | OperationUpperBound () |
Vecd | DataLowerBound () |
void | initializePackageGeometry (const Vecd &pkg_lower_bound, Real data_spacing) |
DataType | probeDataPackage (PackageDataAddress< DataType > &pkg_data_addrs, const Vecd &position) |
void | computeGradient (PackageDataAddress< InDataType > &in_pkg_data_addrs, PackageDataAddress< OutDataType > out_pkg_data_addrs, Real dt=0.0) |
void | computeNormalizedGradient (PackageDataAddress< InDataType > &in_pkg_data_addrs, PackageDataAddress< OutDataType > out_pkg_data_addrs, Real dt=0.0) |
void | initializeSingularDataAddress () |
void | assignAllPackageDataAddress (const Vecu &addrs_index, GridDataPackage *src_pkg, const Vecu &data_index) |
Public Member Functions inherited from SPH::BaseMesh | |
BaseMesh (Vecu number_of_grid_points) | |
BaseMesh (Vecd mesh_lower_bound, Real grid_spacing, Vecu number_of_grid_points) | |
BaseMesh (BoundingBox tentative_bounds, Real grid_spacing, size_t buffer_width) | |
Vecd | MeshLowerBound () |
Real | GridSpacing () |
Vecu | NumberOfGridPoints () |
Vecu | NumberOfGridPointsFromNumberOfCells (const Vecu &number_of_cells) |
Vecu | NumberOfCellsFromNumberOfGridPoints (const Vecu &number_of_grid_points) |
Vecd | GridPositionFromCellPosition (const Vecd &cell_position) |
Vecu | CellIndexFromPosition (const Vecd &position) |
Vecd | CellPositionFromIndex (const Vecu &cell_index) |
Vecd | GridPositionFromIndex (const Vecu &grid_index) |
Vecu | transfer1DtoMeshIndex (const Vecu &number_of_mesh_indexes, size_t i) |
size_t | transferMeshIndexTo1D (const Vecu &number_of_mesh_indexes, const Vecu &mesh_index) |
size_t | MortonCode (const size_t &i) |
size_t | transferMeshIndexToMortonOrder (const Vecu &mesh_index) |
Public Attributes | |
bool | is_core_pkg_ |
PackageData< Real > | phi_ |
PackageDataAddress< Real > | phi_addrs_ |
PackageData< Vecd > | phi_gradient_ |
PackageDataAddress< Vecd > | phi_gradient_addrs_ |
PackageData< Real > | kernel_weight_ |
PackageDataAddress< Real > | kernel_weight_addrs_ |
PackageData< Vecd > | kernel_gradient_ |
PackageDataAddress< Vecd > | kernel_gradient_addrs_ |
PackageData< int > | near_interface_id_ |
PackageDataAddress< int > | near_interface_id_addrs_ |
Public Attributes inherited from SPH::GridDataPackage< 4, 6 > | |
GeneralDataAssemble< PackageData > | all_pkg_data_ |
GeneralDataAssemble< PackageDataAddress > | all_pkg_data_addrs_ |
Public Attributes inherited from SPH::BaseDataPackage | |
Vecu | pkg_index_ |
bool | is_inner_pkg_ |
Additional Inherited Members | |
Public Types inherited from SPH::GridDataPackage< 4, 6 > | |
using | PackageData = PackageDataMatrix< DataType, PKG_SIZE > |
using | PackageDataAddress = PackageDataMatrix< DataType *, ADDRS_SIZE > |
using | PackageTemporaryData = PackageDataMatrix< DataType, ADDRS_SIZE > |
Protected Member Functions inherited from SPH::GridDataPackage< 4, 6 > | |
void | registerPackageData (PackageData< DataType > &pkg_data, PackageDataAddress< DataType > &pkg_data_addrs) |
DataType | CornerAverage (PackageDataAddress< DataType > &pkg_data_addrs, Veci addrs_index, Veci corner_direction) |
Protected Attributes inherited from SPH::GridDataPackage< 4, 6 > | |
DataAssembleOperation< initializePackageDataAddress > | initialize_pkg_data_addrs_ |
DataAssembleOperation< assignPackageDataAddress > | assign_pkg_data_addrs_ |
Protected Attributes inherited from SPH::BaseMesh | |
Vecd | mesh_lower_bound_ |
Real | grid_spacing_ |
Vecu | number_of_grid_points_ |
Fixed memory level set data packed in a package. Level set is the signed distance to an interface, here, the surface of a body.
SPH::LevelSetDataPackage::LevelSetDataPackage | ( | ) |
default constructor, data and address arrays are allocated but not initialized
bool SPH::LevelSetDataPackage::is_core_pkg_ |
If true, the package is near to zero level set.
PackageData<int> SPH::LevelSetDataPackage::near_interface_id_ |
mark the near interface cells. 0 for zero level set cut cells, -1 and 1 for negative and positive cut cells,
0 can also be for other cells in the region closed by negative and positive cut cells
PackageData<Real> SPH::LevelSetDataPackage::phi_ |
the level set or signed distance.
PackageDataAddress<Real> SPH::LevelSetDataPackage::phi_addrs_ |
address for the level set.