mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
21 lines
396 B
C
21 lines
396 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*max(alpha, scalar(0)));
|
|
}
|
|
else
|
|
{
|
|
FatalErrorIn(args.executable())
|
|
<< "Unknown VdjModel : " << VdjModel
|
|
<< abort(FatalError);
|
|
}
|
|
|
|
Vdj.correctBoundaryConditions();
|