How to use funkySetFields for surface scalar 'phi'?
Hi everyone,
I met a problem when using funkySetFields for surface scalar field 'phi'. Basically I want to non-dimensionalise my case through dividing the fields by its reference values. I used the code below for velocity and pressure fields and they worked fine. Code:
funkySetFields -field p -keepPatches -expression 'p/0.030625' -time 63 -condition "mag(vector(pos().x,pos().y,0))<=1.0" Code:
funkySetFields -field U -keepPatches -expression 'U/0.175' -time 63 -condition "mag(vector(pos().x,pos().y,0))<=1.0" Code:
--> FOAM FATAL ERROR: Code:
funkySetFields -field phi -expression 'phi/0.01575' -time 63 I really appreciate it if someone could give me a hand. Thank you very much. Kind regards, Tony |
Quote:
BTW: for a condition you'll want to use fpos() for the face positions |
Dear Bernhard,
Thank you very much for the solution and your kind notice. I tried with interpolate() and it worked for internal fields, however, I couldn't change the values on the boundary (BTW, I am using cyclic boundary condition). Is it possible to get the flux value on boundary changed as well? Thanks and regards, Tony |
Quote:
|
Hi Bernhard,
Many thanks for your kind reply. I will have a look at that. Kind regards, Tony |
All times are GMT -4. The time now is 00:38. |