From a3d90ae9b9db1152b8c4b7bcba413e97e0daf010 Mon Sep 17 00:00:00 2001 From: Getnet Agegnehu <> Date: Wed, 16 Jun 2021 10:00:00 -0500 Subject: [PATCH] TUT: example of patch expressions (#2114) --- .../rhoSimpleFoam/squareBendLiq/0.orig/T | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tutorials/compressible/rhoSimpleFoam/squareBendLiq/0.orig/T b/tutorials/compressible/rhoSimpleFoam/squareBendLiq/0.orig/T index f5625b31919..a09ec4ccd74 100644 --- a/tutorials/compressible/rhoSimpleFoam/squareBendLiq/0.orig/T +++ b/tutorials/compressible/rhoSimpleFoam/squareBendLiq/0.orig/T @@ -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) + #}; } } -- GitLab