openfoam/applications/utilities/preProcessing/setExprBoundaryFields/setExprBoundaryFieldsDict
2023-12-20 19:42:55 +01:00

35 lines
1.0 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object setExprBoundaryFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pattern
{
field T;
expressions
(
{
patch bottom;
target theta0;
expression #{ (pos().x() < 1e-4 ? 60 : 120) #};
}
);
keepPatches true;
}
// ************************************************************************* //