|
[Sponsors] |
create fields for arguments that are created in the middle of a calculation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2023, 20:42 |
create fields for arguments that are created in the middle of a calculation
|
#1 |
New Member
Sangmin Kim
Join Date: Aug 2019
Posts: 6
Rep Power: 7 |
Hello.
I am currently conducting a combustion analysis using OF-v2112. In the code below, specifically in inhomogeneousMixture.C, 'ox' (oxidant mass fraction) is being calculated. I would like to generate this as a single field. I need your advice. Thank you. // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class ThermoType> const ThermoType& Foam::inhomogeneousMixture<ThermoType>::mixture ( const scalar ft, const scalar b ) const { if (ft < 0.0001) { return oxidant_; } else { scalar fu = b*ft + (1.0 - b)*fres(ft, stoicRatio().value()); scalar ox = 1 - ft - (ft - fu)*stoicRatio().value(); scalar pr = 1 - fu - ox; mixture_ = fu*fuel_; mixture_ += ox*oxidant_; mixture_ += pr*products_; return mixture_; } } |
|
March 24, 2023, 10:04 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello,
I have absolutely no experience with your solver, but if the variable is registered in the database you can try to use the writeObjects function: https://develop.openfoam.com/Develop...writeObjects.H I hope this helps, Yann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Meshing a Sphere | Ajay | FLUENT | 10 | September 3, 2016 15:18 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
How to create a vector field out of scalar fields | anja | OpenFOAM Pre-Processing | 7 | May 31, 2006 12:56 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |