|
hemocell
|
#include <hemoCellParticleField.h>


Public Member Functions | |
| HemoCellParticleField (plint nx, plint ny, plint nz) | |
| virtual | ~HemoCellParticleField () |
| HemoCellParticleField (HemoCellParticleField const &rhs) | |
| HemoCellParticleField & | operator= (HemoCellParticleField const &rhs) |
| HemoCellParticleField * | clone () const |
| virtual void | applyConstitutiveModel (bool forced=false) |
| virtual void | addParticle (HemoCellParticle *particle) |
| void | addParticle (const HemoCellParticle::serializeValues_t &sv) |
| void | addParticlePreinlet (const HemoCellParticle::serializeValues_t &sv) |
| virtual void | removeParticles (plb::Box3D domain) |
| virtual void | removeParticles_inverse (plb::Box3D domain) |
| virtual void | removeParticles (plb::Box3D domain, plint tag) |
| virtual void | removeParticles (plint tag) |
| virtual void | findParticles (plb::Box3D domain, std::vector< HemoCellParticle * > &found) |
| virtual void | findParticles (plb::Box3D domain, std::vector< const HemoCellParticle * > &found) const |
| void | findParticles (plb::Box3D domain, std::vector< HemoCellParticle * > &found, pluint type) |
| virtual void | advanceParticles () |
| void | applyRepulsionForce (bool forced=false) |
| void | capRepulsionForce (T limit) |
| virtual void | interpolateFluidVelocity (plb::Box3D domain) |
| virtual void | spreadParticleForce (plb::Box3D domain) |
| void | separateForceVectors () |
| void | unifyForceVectors () |
| void | updateResidenceTime (unsigned int rtime) |
| virtual void | findInternalParticleGridPoints (plb::Box3D domain) |
| virtual void | internalGridPointsMembrane (plb::Box3D domain) |
| int | deleteIncompleteCells (pluint ctype, bool verbose=true) |
Delete the particles of cells of type ctype that are not complete in this block. | |
| int | deleteIncompleteCells (bool verbose=true) |
| Delete the particles of all cells that are not complete in this block. | |
| int | deleteBrokenCells (plint envelope, bool verbose) |
| Delete the particles of cells that lost vertices. | |
| void | snapshotParticles () |
| void | restoreParticles () |
| Discard the current particles and put back those kept by snapshotParticles(). | |
| void | populateBoundaryParticles () |
| void | applyBoundaryRepulsionForce (bool resetFirst=false) |
| void | populateBindingSites (plb::Box3D &domain) |
| T | eigenValueFromCell (plb::Cell< T, DESCRIPTOR > &cell) |
| void | solidifyCells () |
| void | prepareSolidification () |
| void | setlocalDomain (plb::Box3D &localDomain_) |
| void | computeGridPosition (hemo::Array< T, 3 > const &position, plint &iX, plint &iY, plint &iZ) const |
| void | computeGridPosition (hemo::Array< T, 3 > const &position, plint *iX, plint *iY, plint *iZ) const |
| bool | isContainedABS (const hemo::Array< T, 3 > &pos, const plb::Box3D &box) const |
| plb::Box3D & | getBoundingBox () |
| void | getOutputCells (pluint ctype, std::vector< plint > &cellIds) |
The cells of type ctype that this block writes to the cell output. | |
| void | outputPositions (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputVelocities (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForces (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceVolume (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceArea (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceBending (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceLink (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceVisc (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputForceRepulsion (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputTriangles (plb::Box3D, std::vector< std::vector< plint > > &, pluint, std::string &) |
| void | outputInnerLinks (plb::Box3D, std::vector< std::vector< plint > > &, pluint, std::string &) |
| void | outputVertexId (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputCellIds (std::vector< std::vector< plint > > &output, pluint ctype, std::string &name) |
| void | outputForceInnerLink (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | outputResTime (plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| void | AddOutputMap () |
| void | passthroughpass (int, plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &) |
| virtual HemoCellParticleDataTransfer & | getDataTransfer () |
| virtual HemoCellParticleDataTransfer const & | getDataTransfer () const |
| pluint | getsize () |
| plint | nearestCell (T const) const |
| void | invalidate_lpc () |
| void | invalidate_ppt () |
| void | invalidate_ppc () |
| void | invalidate_preinlet_ppc () |
| void | invalidate_pg () |
| const std::vector< std::vector< unsigned int > > & | get_particles_per_type () |
| const std::map< plint, std::vector< int > > & | get_particles_per_cell () |
| const std::map< plint, std::vector< int > > & | get_preinlet_particles_per_cell () |
| const std::map< plint, bool > & | get_lpc () |
| void | insert_ppc (HemoCellParticle *particle, unsigned int index) |
| void | insert_preinlet_ppc (HemoCellParticle *particle, unsigned int index) |
Static Public Member Functions | |
| static std::string | getBlockName () |
| static std::string | basicType () |
| static std::string | descriptorType () |
Public Attributes | |
| std::map< int, void(HemoCellParticleField::*)(plb::Box3D, std::vector< std::vector< T > > &, pluint, std::string &)> | outputFunctionMap |
| pluint | atomicBlockId |
| plb::BlockLattice3D< T, DESCRIPTOR > * | atomicLattice = 0 |
| plb::BlockLattice3D< T, CEPAC_DESCRIPTOR > * | CEPAClattice = 0 |
| std::vector< plint > | neighbours |
| std::vector< plb::Dot3D > | boundaryParticles |
| pluint | envelopeSize |
| std::vector< HemoCellParticle > | particles |
| plb::Box3D | boundingBox |
| int | nFluidCells = 0 |
| std::set< plb::Dot3D > | internalPoints |
| plb::ScalarField3D< T > * | interiorViscosityField = 0 |
| HemoCellParticleDataTransfer & | particleDataTransfer |
| plint | addParticleCount = 0 |
| plb::Box3D | localDomain |
| std::set< plb::Dot3D > | bindingSites |
| plb::ScalarField3D< bool > * | bindingField = 0 |
Static Public Attributes | |
| static HemoCellFields * | cellFields = 0 |
Private Member Functions | |
| void | update_lpc () |
| void | update_ppc () |
| void | update_preinlet_ppc () |
| void | update_ppt () |
| void | update_pg () |
| void | issueWarning (HemoCellParticle &p) |
| int | deleteIncompleteCellsImpl (bool onlyType, pluint ctype, const plb::Box3D *near, bool verbose) |
| void | dropNonFiniteParticle (HemoCellParticle &particle, plint &count) |
Private Attributes | |
| bool | lpc_up_to_date = false |
| bool | ppt_up_to_date = false |
| bool | ppc_up_to_date = false |
| bool | preinlet_ppc_up_to_date = false |
| bool | pg_up_to_date = false |
| std::vector< std::vector< unsigned int > > | _particles_per_type |
| std::map< plint, std::vector< int > > | _particles_per_cell |
| std::map< plint, std::vector< int > > | _preinlet_particles_per_cell |
| std::map< plint, bool > | _lpc |
| std::vector< HemoCellParticle > | particlesSnapshot |
| The particles kept aside by snapshotParticles(). | |
| ParticleGrid | particleGrid |
| std::vector< hemo::Array< T, 3 > * > | allocated_for_output |
|
virtual |
| hemo::HemoCellParticleField::HemoCellParticleField | ( | HemoCellParticleField const & | rhs | ) |
| void hemo::HemoCellParticleField::AddOutputMap | ( | ) |
| void hemo::HemoCellParticleField::addParticle | ( | const HemoCellParticle::serializeValues_t & | sv | ) |
|
virtual |
| void hemo::HemoCellParticleField::addParticlePreinlet | ( | const HemoCellParticle::serializeValues_t & | sv | ) |
|
virtual |
| void hemo::HemoCellParticleField::applyBoundaryRepulsionForce | ( | bool | resetFirst = false | ) |
|
virtual |
| void hemo::HemoCellParticleField::applyRepulsionForce | ( | bool | forced = false | ) |
|
inlinestatic |
| void hemo::HemoCellParticleField::capRepulsionForce | ( | T | limit | ) |
Scale sv.force_repulsion down to magnitude limit where it is larger [lattice force units].
| HemoCellParticleField * hemo::HemoCellParticleField::clone | ( | ) | const |
| void hemo::HemoCellParticleField::computeGridPosition | ( | hemo::Array< T, 3 > const & | position, |
| plint & | iX, | ||
| plint & | iY, | ||
| plint & | iZ | ||
| ) | const |
|
inline |
| int hemo::HemoCellParticleField::deleteBrokenCells | ( | plint | envelope, |
| bool | verbose | ||
| ) |
Delete the particles of cells that lost vertices.
Deletes the cells that are incomplete in this block and have a vertex within envelope nodes of the bulk. Right after syncEnvelopes() and advanceParticles() those are the cells with a vertex missing everywhere (it entered a wall, left the domain or had a non-finite force), provided the particle envelope holds whole cells: cells cut by the edge of the particle envelope lie further out and are left alone.
| [in] | envelope | Distance from the bulk [lattice nodes]. |
| [in] | verbose | Print a warning per deleted cell from the block that owns its vertex. |
| int hemo::HemoCellParticleField::deleteIncompleteCells | ( | bool | verbose = true | ) |
Delete the particles of all cells that are not complete in this block.
| int hemo::HemoCellParticleField::deleteIncompleteCells | ( | pluint | ctype, |
| bool | verbose = true |
||
| ) |
Delete the particles of cells of type ctype that are not complete in this block.
|
private |
Delete incomplete cells: only of type ctype if onlyType, only those with a vertex in near if it is not null.
|
inlinestatic |
|
private |
Zero the force of a vertex with a non-finite force and tag it (tag 1) for removal by spreadParticleForce(); warns for the first one (count 0).
| T hemo::HemoCellParticleField::eigenValueFromCell | ( | plb::Cell< T, DESCRIPTOR > & | cell | ) |
|
virtual |
|
virtual |
|
virtual |
| void hemo::HemoCellParticleField::findParticles | ( | plb::Box3D | domain, |
| std::vector< HemoCellParticle * > & | found, | ||
| pluint | type | ||
| ) |
| const map< plint, bool > & hemo::HemoCellParticleField::get_lpc | ( | ) |
| const map< plint, vector< int > > & hemo::HemoCellParticleField::get_particles_per_cell | ( | ) |
| const vector< vector< unsigned int > > & hemo::HemoCellParticleField::get_particles_per_type | ( | ) |
| const std::map< plint, std::vector< int > > & hemo::HemoCellParticleField::get_preinlet_particles_per_cell | ( | ) |
|
static |
|
inline |
|
virtual |
|
virtual |
The cells of type ctype that this block writes to the cell output.
These are the complete cells whose vertex 0 lies in this block's bulk, in ascending cell ID, so every cell is written by exactly one block. Envelope copies, including the shifted images of cells across a periodic boundary, are not written. All per-vertex outputs and the triangle and inner-link lists of a block use this list, so their rows correspond.
| [in] | ctype | Cell type index. |
| [out] | cellIds | Cell IDs to write. |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
| HemoCellParticleField & hemo::HemoCellParticleField::operator= | ( | HemoCellParticleField const & | rhs | ) |
Copy the particles of rhs into this block (used by Palabos when a MultiParticleField3D is copied). The geometry, data transfer and lattice links of this block are kept. (The former implementation deleted this and returned a new object.)
| void hemo::HemoCellParticleField::outputCellIds | ( | std::vector< std::vector< plint > > & | output, |
| pluint | ctype, | ||
| std::string & | name | ||
| ) |
One row per vertex of the cells this block writes (getOutputCells()), holding the cell's ID (exact, not converted to T).
| void hemo::HemoCellParticleField::outputForceArea | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceBending | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceInnerLink | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceLink | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceRepulsion | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForces | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceVisc | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputForceVolume | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputInnerLinks | ( | plb::Box3D | , |
| std::vector< std::vector< plint > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputPositions | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputResTime | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputTriangles | ( | plb::Box3D | , |
| std::vector< std::vector< plint > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputVelocities | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::outputVertexId | ( | plb::Box3D | , |
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::passthroughpass | ( | int | , |
| plb::Box3D | , | ||
| std::vector< std::vector< T > > & | , | ||
| pluint | , | ||
| std::string & | |||
| ) |
| void hemo::HemoCellParticleField::populateBindingSites | ( | plb::Box3D & | domain | ) |
| void hemo::HemoCellParticleField::populateBoundaryParticles | ( | ) |
| void hemo::HemoCellParticleField::prepareSolidification | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void hemo::HemoCellParticleField::restoreParticles | ( | ) |
Discard the current particles and put back those kept by snapshotParticles().
| void hemo::HemoCellParticleField::separateForceVectors | ( | ) |
| void hemo::HemoCellParticleField::setlocalDomain | ( | plb::Box3D & | localDomain_ | ) |
| void hemo::HemoCellParticleField::snapshotParticles | ( | ) |
Replace the particles by a copy, keeping the originals aside, until restoreParticles() (see HemoCellFields::CompleteCellsScope).
| void hemo::HemoCellParticleField::solidifyCells | ( | ) |
|
virtual |
| void hemo::HemoCellParticleField::unifyForceVectors | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
| void hemo::HemoCellParticleField::updateResidenceTime | ( | unsigned int | rtime | ) |
|
private |
|
private |
|
private |
|
private |
| plint hemo::HemoCellParticleField::addParticleCount = 0 |
|
private |
| pluint hemo::HemoCellParticleField::atomicBlockId |
| plb::BlockLattice3D<T, DESCRIPTOR>* hemo::HemoCellParticleField::atomicLattice = 0 |
| plb::ScalarField3D<bool>* hemo::HemoCellParticleField::bindingField = 0 |
| std::set<plb::Dot3D> hemo::HemoCellParticleField::bindingSites |
| std::vector<plb::Dot3D> hemo::HemoCellParticleField::boundaryParticles |
| plb::Box3D hemo::HemoCellParticleField::boundingBox |
|
static |
| plb::BlockLattice3D<T, CEPAC_DESCRIPTOR>* hemo::HemoCellParticleField::CEPAClattice = 0 |
| pluint hemo::HemoCellParticleField::envelopeSize |
| plb::ScalarField3D<T>* hemo::HemoCellParticleField::interiorViscosityField = 0 |
| std::set<plb::Dot3D> hemo::HemoCellParticleField::internalPoints |
| plb::Box3D hemo::HemoCellParticleField::localDomain |
|
private |
| std::vector<plint> hemo::HemoCellParticleField::neighbours |
| int hemo::HemoCellParticleField::nFluidCells = 0 |
| std::map<int, void (HemoCellParticleField::*)(plb::Box3D, std::vector<std::vector<T>> &, pluint, std::string &)> hemo::HemoCellParticleField::outputFunctionMap |
| HemoCellParticleDataTransfer& hemo::HemoCellParticleField::particleDataTransfer |
|
private |
Particles binned per lattice node; valid only while pg_up_to_date is true (any change to particles invalidates it, see update_pg()).
| std::vector<HemoCellParticle> hemo::HemoCellParticleField::particles |
|
private |
The particles kept aside by snapshotParticles().
|
private |
|
private |
|
private |
|
private |