mantaflow  0.10
A framework for fluid simulation
Functions | Variables
kepsilon.cpp File Reference
#include "grid.h"
#include "commonkernels.h"
#include "vortexsheet.h"
#include "conjugategrad.h"

Functions

void Manta::KnTurbulenceClamp (Grid< Real > &kgrid, Grid< Real > &egrid, Real minK, Real maxK, Real minNu, Real maxNu)
 
void Manta::KnComputeProduction (const MACGrid &vel, const Grid< Vec3 > &velCenter, const Grid< Real > &ke, const Grid< Real > &eps, Grid< Real > &prod, Grid< Real > &nuT, Grid< Real > *strain, Real pscale=1.0f)
 
PYTHON void Manta::KEpsilonComputeProduction (MACGrid &vel, Grid< Real > &k, Grid< Real > &eps, Grid< Real > &prod, Grid< Real > &nuT, Grid< Real > *strain=0, Real pscale=1.0f)
 
void Manta::KnAddTurbulenceSource (Grid< Real > &kgrid, Grid< Real > &egrid, const Grid< Real > &pgrid, Real dt)
 
PYTHON void Manta::KEpsilonSources (Grid< Real > &k, Grid< Real > &eps, Grid< Real > &prod)
 
PYTHON void Manta::KEpsilonBcs (FlagGrid &flags, Grid< Real > &k, Grid< Real > &eps, Real intensity, Real nu, bool fillArea)
 
void Manta::ApplyGradDiff (const Grid< Real > &grid, Grid< Real > &res, const Grid< Real > &nu, Real dt, Real sigma)
 Gradient diffusion smoothing. Not unconditionally stable – should probably do substepping etc.
 
PYTHON void Manta::KEpsilonGradientDiffusion (Grid< Real > &k, Grid< Real > &eps, Grid< Real > &nuT, Real sigmaU=4.0, MACGrid *vel=0)
 

Variables

const Real Manta::keCmu = 0.09
 
const Real Manta::keC1 = 1.44
 
const Real Manta::keC2 = 1.92
 
const Real Manta::keS1 = 1.0
 
const Real Manta::keS2 = 1.3
 
const Real Manta::keU0 = 1.0
 
const Real Manta::keImin = 2e-3
 
const Real Manta::keImax = 1.0
 
const Real Manta::keNuMin = 1e-3
 
const Real Manta::keNuMax = 5.0