mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: example of patch expressions (#2114)
This commit is contained in:
committed by
Mark Olesen
parent
f39fedb7f9
commit
a3d90ae9b9
@ -36,6 +36,21 @@ boundaryField
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 350;
|
||||
|
||||
// For general testing purposes:
|
||||
type exprFixedValue;
|
||||
|
||||
variables
|
||||
(
|
||||
"Tcrit = 500"
|
||||
"par1 = mag(internalField(U))/snGrad(T)"
|
||||
);
|
||||
|
||||
valueExpr
|
||||
#{
|
||||
Tcrit
|
||||
+ par1*internalField(T) * max((Tcrit-T)/(Tcrit)*deltaT()/time(),0)
|
||||
#};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user