[SOLVED] Complex operations on scalar fields
My case involves heat and mass transfer (of some alcohol in an air stream). I modified scalarTransportFoam to add mass transfer in the form of a new scalar field called "C".
Now, I want to calculate, for every point in the mesh, the pressure of the vapor, the saturation pressure and ultimately the ratio of the two. These calculations involve exponential functions, with T and C as entry parameters. I could not find any scalar field operators to do that. I was wondering if the sample utility combined with some external code (C or Python) could help me do that ? |
Quote:
|
Hi
I found a solution that suits me better than function objects : the post processing sampling utility, to sample scalar fields on a plane. Then, I can easily manipulate the data and do whatever calculation and plots I want, in my case with Python. D. |
All times are GMT -4. The time now is 13:40. |