funkySetFields over a cellZone
Dear All,
What would be the syntax of funkySetFields to set a value of a field only on a part of a cellZone of my mesh? This does not work: expressions ( setProp1 { field alpha; zoneName pipe; condition " (pos().y < -0.331)"; expression "1"; keepPatches true; } ); Many thanks in advance... |
Quote:
|
Dear Bernhard,
My fault for being a bit lazy...actually I found it while you gave me the solution. Many thanks, radu |
Hello!
I was trying to set the field for a volTensorField for a particular cellzone the following way: roughness_channel1 { field nRGHo; zone(channel1); expression "tensor(0.15, 0.0, 0.0, 0.0, 0.15, 0.0, 0.0, 0.0, 0.0)"; keepPatches 1; } But it doesn't work. The field for the entire domain gets replaced by the given tensor value. Can anyone explain why is it happening? |
Quote:
To constrain the cells the cells that FSF manipulates you've got to use a "condition" (it is a bit more typing but sooo much more flexible). The condition can be any expression with a boolean result. In your case something like Code:
roughness_channel1 |
Yes! Got it! It works well.... Thanks a lot! :)
|
All times are GMT -4. The time now is 17:46. |