|
[Sponsors] |
Integrating rhoReactionThermo in twoPhaseModel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 4, 2022, 12:50 |
Integrating rhoReactionThermo in twoPhaseModel
|
#1 |
Member
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4 |
Dear Foamers!
I need some help. I'm currently building a multiphase class (pretty similar to that in compressibleInterFoam https://github.com/OpenFOAM/OpenFOAM...ixtureThermo.H) but instead of rhoThermo, I need rhoReactionThermo for the multicomponent feature + reaction models in OF. Thats why I inherited the composite sub class . Code:
class twoPhaseReactionThermo : public rhoReactionThermo::composite, public twoPhaseMixture, public interfaceProperties Code:
virtual basicSpecieMixture& composition() = 0; Code:
basicSpecieMixture& composition = thermo.composition(); Code:
*.H autoPtr<rhoReactionThermo> thermo1_; autoPtr<rhoReactionThermo> thermo2_; *.C thermo1_= rhoReactionThermo::New(U.mesh(), phase1Name_); thermo2_= rhoReactionThermo::New(U.mesh(), phase2Name_); basicSpecieMixture& composition1() { return thermo1_->composition(); } basicSpecieMixture& composition2() { return thermo2_->composition(); } Big thanks to anyone in advance and have a nice week! Last edited by überschwupper; July 6, 2022 at 11:22. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to obtain the force by integrating the pressure? | Rinia | STAR-CCM+ | 1 | June 30, 2019 23:13 |
New rhoReactionThermo type in reactingTwoPhaseEulerFoam | cfd4res | OpenFOAM Programming & Development | 0 | June 3, 2019 07:32 |
integrating cantera with openfoam | khalifa | CFD Freelancers | 1 | October 19, 2015 22:36 |
Integrating velocity profile over a line | umar82088 | OpenFOAM Post-Processing | 0 | June 10, 2013 14:58 |
a short online survey about integrating CFD | Question 2 | Main CFD Forum | 0 | September 19, 2006 16:12 |