Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
a3d90ae9
Commit
a3d90ae9
authored
Jun 16, 2021
by
Getnet Agegnehu
Committed by
Mark OLESEN
Jun 18, 2021
Browse files
TUT: example of patch expressions (
#2114
)
parent
f39fedb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tutorials/compressible/rhoSimpleFoam/squareBendLiq/0.orig/T
View file @
a3d90ae9
...
...
@@ -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)
#};
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment