|
LBIBCell
|
the Fluid Solver which solves the D2Q9 LBGK More...
#include <FluidSolver.hpp>
Public Member Functions | |
| FluidSolver (const nodes::PhysicalNode &physicalNode) | |
| FluidSolver Initialises the fluid solver. More... | |
| ~FluidSolver () | |
| ~FluidSolver Destructor non virtual to avoid inheritance | |
| virtual void | loadSolver (std::stringstream *const stream) |
| loads the solver from the file More... | |
| virtual void | writeSolver (std::ostream *const stream) |
| writes the solver to the file More... | |
| virtual void | collide () |
| collide The collision step of the LBM | |
| virtual void | advect () |
| advect The advect step of the LBM | |
| virtual double & | accessDistribution (const Direction &dir) |
| accessDistribution Access to the distribution More... | |
| virtual void | rescaleDistributions (const double factor) |
| Rescales all distributions by a factor. More... | |
| double | getRho () const |
| getRho Calculates the Rho More... | |
| const Field< double > & | getVelocity () const |
| getVelocity Returns the current velocity of the fluid More... | |
| void | setVelocity (Field< double > velocity) |
| setVelocity Sets the velocity of this fluid Algorithm. Should only be used for initialisation. More... | |
| virtual void | initSolver () |
| initSolver Use this to initalise the solver | |
| void | addForce (Field< double > f) |
| adds f to the current force More... | |
| void | resetForce () |
| resets the force on this fluid solver to 0 More... | |
| void | addMass (double mass) |
| addMass The mass which is added to this fluid solver More... | |
| FluidSolver (const nodes::PhysicalNode &physicalNode) | |
| FluidSolver Initialises the fluid solver. More... | |
| ~FluidSolver () | |
| ~FluidSolver Destructor non virtual to avoid inheritance | |
| virtual void | loadSolver (std::stringstream *const stream) |
| loads the solver from the file More... | |
| virtual void | writeSolver (std::ostream *const stream) |
| writes the solver to the file More... | |
| virtual void | collide () |
| collide The collision step of the LBM | |
| virtual void | advect () |
| advect The advect step of the LBM | |
| virtual double & | accessDistribution (const Direction &dir) |
| accessDistribution Access to the distribution More... | |
| virtual void | rescaleDistributions (const double factor) |
| Rescales all distributions by a factor. More... | |
| double | getRho () const |
| getRho Calculates the Rho More... | |
| const Field< double > & | getVelocity () const |
| getVelocity Returns the current velocity of the fluid More... | |
| void | setVelocity (Field< double > velocity) |
| setVelocity Sets the velocity of this fluid Algorithm. Should only be used for initialisation. More... | |
| virtual void | initSolver () |
| initSolver Use this to initalise the solver | |
| void | addForce (Field< double > f) |
| adds f to the current force More... | |
| void | resetForce () |
| resets the force on this fluid solver to 0 More... | |
| void | addMass (double mass) |
| addMass The mass which is added to this fluid solver More... | |
Public Member Functions inherited from LbmLib::solver::AbstractSolver | |
| virtual | ~AbstractSolver () |
| ~AbstractSolver Destructor | |
| void | setTau (double tau) |
| setTau Setter method for the tau parameter of the solver More... | |
| double | getTau () const |
| getTau Getter method for the tau parameter More... | |
Additional Inherited Members | |
Protected Member Functions inherited from LbmLib::solver::AbstractSolver | |
| AbstractSolver () | |
| AbstractSolver Protected to disable direct instantiation. | |
the Fluid Solver which solves the D2Q9 LBGK
Definition at line 41 of file FluidSolver.hpp.
|
explicit |
FluidSolver Initialises the fluid solver.
| physicalNode | The physical node which is the parent of this solver |
Definition at line 266 of file FluidSolver.cpp.
|
explicit |
FluidSolver Initialises the fluid solver.
| physicalNode | The physical node which is the parent of this solver |
|
virtual |
accessDistribution Access to the distribution
| dir | the direction where the Distribution is wanted |
Implements LbmLib::solver::AbstractSolver.
|
virtual |
accessDistribution Access to the distribution
| dir | the direction where the Distribution is wanted |
Implements LbmLib::solver::AbstractSolver.
Definition at line 225 of file FluidSolver.cpp.
| void LbmLib::solver::FluidSolver::addForce | ( | Field< double > | f | ) |
adds f to the current force
| f | the added force |
| void LbmLib::solver::FluidSolver::addForce | ( | Field< double > | f | ) |
adds f to the current force
| f | the added force |
Definition at line 196 of file FluidSolver.cpp.
| void LbmLib::solver::FluidSolver::addMass | ( | double | mass | ) |
addMass The mass which is added to this fluid solver
| mass | The mass to add |
| void LbmLib::solver::FluidSolver::addMass | ( | double | mass | ) |
addMass The mass which is added to this fluid solver
| mass | The mass to add |
Definition at line 253 of file FluidSolver.cpp.
| double LbmLib::solver::FluidSolver::getRho | ( | ) | const |
getRho Calculates the Rho
| double LbmLib::solver::FluidSolver::getRho | ( | ) | const |
| const Field<double>& LbmLib::solver::FluidSolver::getVelocity | ( | ) | const |
getVelocity Returns the current velocity of the fluid
| const Field< double > & LbmLib::solver::FluidSolver::getVelocity | ( | ) | const |
getVelocity Returns the current velocity of the fluid
Definition at line 242 of file FluidSolver.cpp.
|
virtual |
loads the solver from the file
| stream | the stream where the solver is loaded from |
Implements LbmLib::solver::AbstractSolver.
|
virtual |
loads the solver from the file
| stream | the stream where the solver is loaded from |
Implements LbmLib::solver::AbstractSolver.
Definition at line 208 of file FluidSolver.cpp.
|
virtual |
Rescales all distributions by a factor.
| factor | The rescaling factor. |
Implements LbmLib::solver::AbstractSolver.
|
virtual |
Rescales all distributions by a factor.
| factor | The rescaling factor. |
Implements LbmLib::solver::AbstractSolver.
Definition at line 229 of file FluidSolver.cpp.
| void LbmLib::solver::FluidSolver::resetForce | ( | ) |
resets the force on this fluid solver to 0
| void LbmLib::solver::FluidSolver::resetForce | ( | ) |
resets the force on this fluid solver to 0
Definition at line 220 of file FluidSolver.cpp.
| void LbmLib::solver::FluidSolver::setVelocity | ( | Field< double > | velocity | ) |
setVelocity Sets the velocity of this fluid Algorithm. Should only be used for initialisation.
| velocity | The velocity |
| void LbmLib::solver::FluidSolver::setVelocity | ( | Field< double > | velocity | ) |
setVelocity Sets the velocity of this fluid Algorithm. Should only be used for initialisation.
| velocity | The velocity |
Definition at line 235 of file FluidSolver.cpp.
|
virtual |
writes the solver to the file
| stream | the stream where the solver is written to |
Implements LbmLib::solver::AbstractSolver.
|
virtual |
writes the solver to the file
| stream | the stream where the solver is written to |
Implements LbmLib::solver::AbstractSolver.
Definition at line 200 of file FluidSolver.cpp.