mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve dimensions handling for setExpr* utilities (#2014)
- new '-ascii' option to write in ASCII format instead of the controlDict setting. This can be useful when generating fields that should be parsed with other tools, or for visual inspection. - correct mismatch of option names and lookups
This commit is contained in:
@ -25,7 +25,7 @@ updateBCs
|
||||
{
|
||||
target value;
|
||||
variables ( "rho=1.2" );
|
||||
expression #{ 0.5*rho*cbrt(mag(U)) #};
|
||||
expression #{ 0.5*rho*pow(mag(U),3) #};
|
||||
}
|
||||
|
||||
expressions
|
||||
|
||||
@ -20,7 +20,8 @@ readFields ( U );
|
||||
_value1
|
||||
{
|
||||
variables ( "rho=1.2" );
|
||||
expression #{ 0.5*rho*cbrt(mag(U)) #};
|
||||
expression #{ 0.5*rho*pow(mag(U),3) #};
|
||||
dimensions [ kg s^-3 ];
|
||||
}
|
||||
|
||||
expressions
|
||||
|
||||
Reference in New Issue
Block a user