Skip to content
Snippets Groups Projects
Commit a3d90ae9 authored by Getnet Agegnehu's avatar Getnet Agegnehu Committed by Mark OLESEN
Browse files

TUT: example of patch expressions (#2114)

parent f39fedb7
Branches
Tags
No related merge requests found
...@@ -36,6 +36,21 @@ boundaryField ...@@ -36,6 +36,21 @@ boundaryField
{ {
type fixedValue; type fixedValue;
value uniform 350; 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)
#};
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment