|
MaMiCo 1.2
|
implements an analytic Couette flow solver. More...
#include <CouetteSolver.h>


Public Member Functions | |
| CouetteSolver (const double &channelheight, const double &wallVelocity, const double kinVisc) | |
| a simple constructor | |
| virtual | ~CouetteSolver () |
| a dummy destructor | |
| virtual void | advance (double dt) |
| advances one time step dt in time | |
| virtual tarch::la::Vector< dim, double > | getVelocity (tarch::la::Vector< dim, double > pos) const |
| returns the velocity vector at a certain channel position | |
| virtual void | setWallVelocity (const tarch::la::Vector< dim, double > wallVelocity) |
| changes the velocity at the moving for, refers to Couette scenario | |
Public Member Functions inherited from coupling::solvers::AbstractCouetteSolver< dim > | |
| virtual | ~AbstractCouetteSolver () |
| a dummy destructor | |
Private Attributes | |
| const double | _channelheight |
| height of couette channel | |
| double | _wallVelocity |
| velocity of moving wall | |
| const double | _kinVisc |
| kinematic viscosity | |
| double | _time |
| current time | |
implements an analytic Couette flow solver.
In our scenario, the lower wall is accelerated and the upper wall stands still. The lower wall is located at zero height.
| dim | refers to the spacial dimension of the simulation, can be 1, 2, or 3 |
|
inline |
a simple constructor
| channelheight | the height and width of the channel in y and z direction |
| wallVelocity | the velocity at the moving wall |
| kinVisc | the kinematic viscosity of the fluid |
|
inlinevirtual |
advances one time step dt in time
| dt | size of the time step to advance |
Implements coupling::solvers::AbstractCouetteSolver< dim >.
|
inlinevirtual |
returns the velocity vector at a certain channel position
for the first entry of the vector is the analytic solution of the Couette scenario returned, given by: u(z,t)= V(1-z/H) - 2V/pi*sum_k=1^infty 1/k*sin(k*pi*z/H)*exp(-k^2 pi^2/H^2 * nu*t) The other two entries are 0
| pos | the position to return the velocity for |
Implements coupling::solvers::AbstractCouetteSolver< dim >.
|
inlinevirtual |
changes the velocity at the moving for, refers to Couette scenario
| wallVelocity | value to which the veloctiy will be set |
Implements coupling::solvers::AbstractCouetteSolver< dim >.