|
Supplies a 'constant heat flux' to a cuboidal region (specified by two corner points) by adding a random velocity at each time step to each particle therein, increasing the granular temperature (velocity variance). More...
#include <DropletBoundary.h>
Classes | |
struct | Droplet |
Public Member Functions | |
DropletBoundary () | |
DropletBoundary (const DropletBoundary &other) | |
~DropletBoundary () override | |
DropletBoundary * | copy () const override |
Used to create a copy of the object NB: purely virtual function. More... | |
std::string | getName () const override |
A purely virtual function. More... | |
void | checkBoundaryAfterParticlesMove (ParticleHandler &pH) override |
Runs at the end of each time step. More... | |
void | read (std::istream &is) override |
Reads some boundary properties from an std::istream. More... | |
void | write (std::ostream &os) const override |
Writes the boundary properties to an std::ostream. More... | |
void | setGenerateDroplets (std::function< void(DropletBoundary &)> generateDroplets) |
void | writeVTK (std::fstream &file) override |
void | setRemoveDropletsAtWalls (bool removeDroplets) |
void | setDropletSpecies (const ParticleSpecies *species) |
void | actionsBeforeTimeLoop () override |
Virtual function that does something after DPMBase::setupInitialConditions but before the first time step. More... | |
Public Member Functions inherited from BaseBoundary | |
BaseBoundary () | |
default constructor. More... | |
BaseBoundary (const BaseBoundary &b) | |
copy constructor More... | |
~BaseBoundary () override | |
destructor More... | |
virtual void | createPeriodicParticle (BaseParticle *p UNUSED, ParticleHandler &pH UNUSED) |
Creates a periodic particle in case of periodic boundaries in serial build. More... | |
virtual void | createPeriodicParticles (ParticleHandler &pH UNUSED) |
Creates periodic copies of given particle in case of periodic boundaries. More... | |
virtual void | checkBoundaryBeforeTimeStep (DPMBase *md) |
Virtual function that does things before each time step. More... | |
virtual void | modifyGhostAfterCreation (BaseParticle *particle, int i) |
void | setHandler (BoundaryHandler *handler) |
Sets the boundary's BoundaryHandler. More... | |
BoundaryHandler * | getHandler () const |
Returns the boundary's BoundaryHandler. More... | |
Public Member Functions inherited from BaseObject | |
BaseObject ()=default | |
Default constructor. More... | |
BaseObject (const BaseObject &p)=default | |
Copy constructor, copies all the objects BaseObject contains. More... | |
virtual | ~BaseObject ()=default |
virtual destructor More... | |
virtual void | moveInHandler (unsigned int index) |
Except that it is virtual, it does the same thing as setIndex() does. More... | |
void | setIndex (unsigned int index) |
Allows one to assign an index to an object in the handler/container. More... | |
void | setId (unsigned long id) |
Assigns a unique identifier to each object in the handler (container) which remains constant even after the object is deleted from the container/handler. More... | |
unsigned int | getIndex () const |
Returns the index of the object in the handler. More... | |
unsigned int | getId () const |
Returns the unique identifier of any particular object. More... | |
void | setGroupId (unsigned groupId) |
unsigned | getGroupId () const |
Public Attributes | |
std::vector< Droplet > | droplets_ |
double | dropletVolume = 0 |
double | absorbedVolume = 0 |
double | lostVolume = 0 |
unsigned | checkCount = 3 |
Private Attributes | |
std::function< void(DropletBoundary &)> | generateDroplets_ = [] (DropletBoundary&) {} |
bool | removeDropletsAtWalls_ = true |
const ParticleSpecies * | dropletSpecies_ = nullptr |
Supplies a 'constant heat flux' to a cuboidal region (specified by two corner points) by adding a random velocity at each time step to each particle therein, increasing the granular temperature (velocity variance).
Note, you need to create a species for the droplets that has liquidVolumeMax-0, or the contact happens at a non-zero distance
|
inline |
Referenced by copy().
|
inline |
References droplets_, dropletSpecies_, generateDroplets_, and removeDropletsAtWalls_.
|
inlineoverride |
|
inlineoverridevirtual |
Virtual function that does something after DPMBase::setupInitialConditions but before the first time step.
Can be used to perform actions before the time loop, but after setupInitialConditions.
Reimplemented from BaseBoundary.
References checkCount, dropletSpecies_, BaseHandler< T >::getDPMBase(), BaseBoundary::getHandler(), BaseHandler< T >::getLastObject(), logger, removeDropletsAtWalls_, DPMBase::speciesHandler, and WARN.
|
overridevirtual |
Runs at the end of each time step.
Reimplemented from BaseBoundary.
References absorbedVolume, LiquidFilm< Particle >::addLiquidVolume(), checkCount, droplets_, dropletSpecies_, dropletVolume, generateDroplets_, BaseHandler< T >::getDPMBase(), DPMBase::getGravity(), BaseBoundary::getHandler(), BaseWall::getInteractionWith(), ParticleSpecies::getMassFromRadius(), DPMBase::getNumberOfTimeSteps(), DPMBase::getTimeStep(), MercuryBase::hGridFindParticleContacts(), constants::i, DPMBase::interactionHandler, logger, lostVolume, constants::pi, removeDropletsAtWalls_, and DPMBase::wallHandler.
|
inlineoverridevirtual |
Used to create a copy of the object NB: purely virtual function.
Implements BaseBoundary.
References DropletBoundary().
|
inlineoverridevirtual |
|
overridevirtual |
Reads some boundary properties from an std::istream.
Reads a number of boundary properties from the given std::istream.
[in,out] | is | the istream |
Implements BaseBoundary.
References checkCount, droplets_, constants::i, n, and BaseBoundary::read().
|
inline |
References dropletSpecies_.
|
inline |
References generateDroplets_.
Referenced by main(), NozzleDemo::setupInitialConditions(), and NozzleSelfTest::setupInitialConditions().
|
inline |
References removeDropletsAtWalls_.
|
overridevirtual |
Writes the boundary properties to an std::ostream.
Writes the boundary properties to an std::ostream.
[out] | os | the ostream the properties are to be written to. |
Implements BaseBoundary.
References checkCount, droplets_, and BaseBoundary::write().
|
overridevirtual |
Reimplemented from BaseBoundary.
References droplets_.
double DropletBoundary::absorbedVolume = 0 |
Referenced by checkBoundaryAfterParticlesMove().
unsigned DropletBoundary::checkCount = 3 |
Referenced by actionsBeforeTimeLoop(), checkBoundaryAfterParticlesMove(), read(), and write().
std::vector<Droplet> DropletBoundary::droplets_ |
|
private |
Referenced by actionsBeforeTimeLoop(), checkBoundaryAfterParticlesMove(), DropletBoundary(), and setDropletSpecies().
double DropletBoundary::dropletVolume = 0 |
Referenced by checkBoundaryAfterParticlesMove().
|
private |
Referenced by checkBoundaryAfterParticlesMove(), DropletBoundary(), and setGenerateDroplets().
double DropletBoundary::lostVolume = 0 |
Referenced by checkBoundaryAfterParticlesMove().
|
private |
Referenced by actionsBeforeTimeLoop(), checkBoundaryAfterParticlesMove(), DropletBoundary(), and setRemoveDropletsAtWalls().