CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Vapor fraction in chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2018, 04:28
Default Vapor fraction in chtMultiRegionFoam
  #1
New Member
 
MABH
Join Date: Feb 2018
Posts: 4
Rep Power: 8
MABH is on a distinguished road
How can I add a vapor fraction in the chtMultiRegionFoam?
Is for implementing a phase change simulation using that solver.
MABH is offline   Reply With Quote

Old   August 12, 2020, 22:34
Default
  #2
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by MABH View Post
How can I add a vapor fraction in the chtMultiRegionFoam?
Is for implementing a phase change simulation using that solver.
Have a method?
wanghongjie is offline   Reply With Quote

Old   August 14, 2020, 19:32
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
In the ESI development line of OpenFOAM (openfoam.com) there is the solver chtMultiRegionTwoPhaseEulerFoam which can do what you want. See https://www.openfoam.com/releases/op...nd-physics.php
jherb is offline   Reply With Quote

Old   August 14, 2020, 23:07
Default
  #4
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by jherb View Post
In the ESI development line of OpenFOAM (openfoam.com) there is the solver chtMultiRegionTwoPhaseEulerFoam which can do what you want. See https://www.openfoam.com/releases/op...nd-physics.php
Thank you for your reply. My two-phase model is based on interCondensatingEvaporatingFoam, which is quite different in writing from TwoPhaseEulerFoam. So I want to implant interCondensatingEvaporatingFoam into chtMultiRegionFoam. Do you think it is feasible? I have been in contact with openfoam for a few months, and many things are not very clear. Thank you for your guidance.
wanghongjie is offline   Reply With Quote

Old   August 15, 2020, 18:45
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
There are two "challenges":

The first one is to get a new solver based on chtMultiRegionFoam. There you have to replace the solver in the fluid folder with your base solve (interCondensatingEvaporatingFoam). This is just "programming", but a a lot.

The second one is you have to find new boundary conditions for the wall where you model what happens physically there. Boiling/condensation? Then you have to implement it. If you look at the solver of ESI and the corresponding wall modelling, you can see, this is even more work. How much time do you have? Do you have help by co-workers? This sounds more like a at least one PhD thesis than e. g. a master thesis.
jherb is offline   Reply With Quote

Old   August 16, 2020, 03:04
Default
  #6
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by jherb View Post
There are two "challenges":

The first one is to get a new solver based on chtMultiRegionFoam. There you have to replace the solver in the fluid folder with your base solve (interCondensatingEvaporatingFoam). This is just "programming", but a a lot.

The second one is you have to find new boundary conditions for the wall where you model what happens physically there. Boiling/condensation? Then you have to implement it. If you look at the solver of ESI and the corresponding wall modelling, you can see, this is even more work. How much time do you have? Do you have help by co-workers? This sounds more like a at least one PhD thesis than e. g. a master thesis.
Thank you for your reply. By consulting online information, I am currently modifying the fsiFoam in extend-4.0, but still face great challenges. For example, changing the single phase of the liquid zone to two phases, introducing temperature, etc. Yes, I am currently at the master's level and the program is part of the master's thesis.
wanghongjie is offline   Reply With Quote

Old   August 17, 2020, 10:48
Default
  #7
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by jherb View Post
There are two "challenges":

The first one is to get a new solver based on chtMultiRegionFoam. There you have to replace the solver in the fluid folder with your base solve (interCondensatingEvaporatingFoam). This is just "programming", but a a lot.

The second one is you have to find new boundary conditions for the wall where you model what happens physically there. Boiling/condensation? Then you have to implement it. If you look at the solver of ESI and the corresponding wall modelling, you can see, this is even more work. How much time do you have? Do you have help by co-workers? This sounds more like a at least one PhD thesis than e. g. a master thesis.
I am modifying the chtMultiRegionFoam with interCondensatingEvaporatingFoam, some problem happen in the createFluidFields.H. I cannot declare thermoFluid correctly, may you have an answer? Thanks!

Info<< "*** Reading fluid mesh thermophysical properties for region "
<< fluidRegions[i].name() << nl << endl;
Info<< " Adding to thermoFluid\n" << endl;
thermoFluid.set(i, twoPhaseMixtureEThermo::New(UFluid[i],phiFluid[i]);



./fluid/createFluidFields.H: In function ‘int main(int, char**)’:
./fluid/createFluidFields.H:50:48: error: reference to ‘New’ is ambiguous
50 | thermoFluid.set(i, twoPhaseMixtureEThermo::New(UFluid[i],phiFluid[i]);
|
wanghongjie is offline   Reply With Quote

Reply

Tags
phase change, vapor fraction


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
heat transfer, multiple regions, chtMultiRegionFoam? Ohlzen-Wendy OpenFOAM Pre-Processing 13 February 8, 2022 07:17
Error in thermophysical properties (chtMultiRegionFoam) mukut OpenFOAM Pre-Processing 28 November 23, 2021 06:34
chtMultiRegionFoam connection between solid and fluid region of heat exchanger ahab OpenFOAM 1 December 18, 2019 00:37
Simulation of a sample in a furnace w/ chtMultiRegionFoam sergimart7 OpenFOAM Running, Solving & CFD 7 August 12, 2015 06:48
FOAM FATAL IO ERROR for chtMultiRegionFoam xiaoyoyo OpenFOAM Running, Solving & CFD 0 May 8, 2012 16:49


All times are GMT -4. The time now is 02:08.