db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
20 lines
380 B
C
20 lines
380 B
C
if (VdjModel == "general")
|
|
{
|
|
Vdj = V0*
|
|
(
|
|
exp(-a*max(alpha - alphaMin, scalar(0)))
|
|
- exp(-a1*max(alpha - alphaMin, scalar(0)))
|
|
);
|
|
}
|
|
else if (VdjModel == "simple")
|
|
{
|
|
Vdj = V0*pow(10.0, -a*alpha);
|
|
}
|
|
else
|
|
{
|
|
FatalErrorIn(args.executable())
|
|
<< "Unknown VdjModel : " << VdjModel
|
|
<< abort(FatalError);
|
|
}
|
|
|
|
Vdj.correctBoundaryConditions();
|