|
[Sponsors] |
July 9, 2019, 12:49 |
Custom Lagrangian Phase Change Model
|
#1 |
New Member
Brent Craven
Join Date: Oct 2015
Posts: 7
Rep Power: 11 |
Hi All,
I am trying to implement a custom/modified PhaseChangeModel for Reacting parcels/clouds in OpenFOAM. Essentially, I want to customize the LiquidEvaporation submodel. But, I am having problems creating a cloned version of LiquidEvaporation and getting it compiled and running. Here is what I have done (following https://www.cfd-online.com/Forums/openfoam-programming-development/131448-sprayfoam-water-spraying-into-steam-air-environment.html#post480698):
The custom model/code compiles with no issues. However, when I try using it in the test case I get: Code:
--> FOAM FATAL ERROR: Unknown phaseChangeModel type nonIdealLiquidEvaporation Valid phaseChangeModel types : 3 ( liquidEvaporation liquidEvaporationBoil none ) Has anyone had this issue? Or, has anyone successfully created a custom Lagrangian phase change model? Note that I have also tried copying the entire $FOAM_SRC/lagrangian/intermediate library, adding my custom phase change model, and recompiling (as recommended in section 1.4 here: http://www.tfd.chalmers.se/~hani/kur...man-Arshad.pdf) with no success. Thanks for your thoughts. Brent |
|
July 10, 2019, 09:33 |
|
#2 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
Hi
If you are using OF-6, then you should remove the "namespace Foam" in the makeCustomReactingParcelPhaseChangeModels.C file.
__________________
https://openfoam.top |
|
July 11, 2019, 12:50 |
|
#3 |
New Member
Brent Craven
Join Date: Oct 2015
Posts: 7
Rep Power: 11 |
Hi Yan,
Thanks for the advice. I have tried this in both OpenFOAM-v1806 and OpenFOAM-v1812 with the same result: Code:
Unknown phaseChangeModel type nonIdealLiquidEvaporation If so, it might be worth a shot. Thanks, Brent |
|
December 25, 2022, 17:38 |
|
#4 | |
Member
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 60
Rep Power: 11 |
Hi, did you finally solve it?
Quote:
|
||
December 25, 2022, 20:22 |
|
#5 |
Member
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 60
Rep Power: 11 |
In my case, following the Chalmers guide did not work well ( http://www.tfd.chalmers.se/~hani/kur...man-Arshad.pdf)).
What I had to do to compile a test phase change model was the following: (OpenFOAM 2012). 1. Local compilation (Chalmers) did not work in any case. 2. Therefore I used the Chalmers procedure but in the root ($FOAM_SRC/lagrangian/intermediate/, etc). 3. Naturally, the intermediate/Make file is not modified in the root (LIB = $(FOAM_USER_LIBBIN)/libmylagrangianIntermediate is not included) as the compilation is not local. 4. If compiled from lagrangian/intermediate/ -->sudo bash --> wclean --> wmake libso, the compilation is successful but still the phase change model is not available in the list. 5. Compilation was successful and phase change model is available if compiled from $FOAM_SRC/lagrangian (--> sudo bash --> wclean --> ./Allwmake). Please let me know if anybody can perform the local compilation in recent versions of OpenFOAM. Best regards, Jairo. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thermal phase change model | Piti | CFX | 1 | January 14, 2021 11:03 |
Transient Phase Change Model: Explodes at low vapor quality | evcelica | CFX | 0 | August 28, 2018 11:55 |
How difficult is it to model a parrafin wax phase change? | jmckenzie | OpenFOAM | 3 | August 29, 2016 03:37 |
Error in Two phase (condensation) modeling | adilsyyed | CFX | 15 | June 24, 2015 20:42 |
Statistical Approach for Lagrangian Two Phase Model | Hesham El-Batsh | Main CFD Forum | 0 | November 20, 1998 10:20 |