|
[Sponsors] |
September 30, 2019, 06:42 |
[SOLVED] Complex operations on scalar fields
|
#1 |
New Member
Join Date: Jul 2017
Posts: 10
Rep Power: 9 |
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 ? Last edited by dplamp; October 22, 2019 at 08:38. Reason: mark thread solved |
|
September 30, 2019, 09:32 |
|
#2 | |
New Member
Josh
Join Date: Jun 2013
Posts: 19
Rep Power: 13 |
Quote:
|
||
October 22, 2019, 03:12 |
|
#3 |
New Member
Join Date: Jul 2017
Posts: 10
Rep Power: 9 |
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. Last edited by dplamp; October 22, 2019 at 08:40. Reason: fix typo |
|
Tags |
post procesing, scalar field |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
Temperature calculation from total enthalpy in OpenFOAM (XiFOAM) | sharifi | OpenFOAM Running, Solving & CFD | 1 | October 8, 2020 10:16 |
Complex geometric fields | Ali Blues | OpenFOAM Programming & Development | 1 | January 1, 2018 18:51 |
Problem with complex eigenvalues detected for symmTensor | tbao | OpenFOAM | 3 | November 3, 2016 10:24 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |