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

Turn an incompressible multiphase solver into compressible

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By überschwupper

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2022, 05:57
Default Turn an incompressible multiphase solver into compressible
  #1
New Member
 
Join Date: Jun 2022
Posts: 5
Rep Power: 2
Yupp is on a distinguished road
Hello foamers.

First, I would like to apologize for my bad English, and as I just started programming in OpenFoam, it may be good for me to be pedagogue (I'm still a stranger to this).

There is my problem : I want to turn the 'interCondensatingEvaporatingFoam' multiphase solver from incompressible to compressible. This solver initially uses the PIMPLE algorithm.

Can anyone help me out on how to do this as cleanly as possible? I searched on many forums but couldn't really find it. I was told that a good way to start was to convert volumetric flows to mass flows. For now, I only compiled my new solver in USER_APPBIN.

Thank you!
Yupp is offline   Reply With Quote

Old   September 5, 2022, 14:43
Default
  #2
Member
 
Al
Join Date: May 2019
Posts: 33
Rep Power: 5
aliyah. is on a distinguished road
Hello

In my opinion and based on my experience, turning interCondensatingEvaporatingFoam from incompressible to compressible is a really messy work and involves lots of modifications in the code and libraries you use.

I recommend checking out a solver*called TwoPhaseFlow if you require a compressible solver for solving thermal*phase change phenomena, such as boiling or condensation. Conjugate heat transfer between solid and fluid areas is addressed by this solver, which is a hybrid of heatConductionFoam and buoyantFoam. I suggest check out this solver and its*tutorials in GitHub*if you're interested.

Best
aliyah. is offline   Reply With Quote

Old   September 6, 2022, 03:22
Default
  #3
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 51
Rep Power: 2
überschwupper is on a distinguished road
I wouldnt recommend your idea. it will result into adding new dependencies to the density.

1. equation of state rho=f(p,T) => Adding equation of state and Energy equation
2. pressure-velocity coupling needs a density correction
+more ..


Comppressible and incompressible solvers are different. Its a different approach in solving the N-S-Equations. the role of pressure changes dramaticly in compressible flows. Better approach would be starting from a compressible solver and adding features to that instead of vice versa.
dlahaye likes this.
überschwupper is offline   Reply With Quote

Reply

Tags
compressible, conversion, incompressible, multiphase, pimple

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 08:54
Low Mach Number Compressible Multiphase Flows DarrenC CFX 10 May 26, 2014 09:52
what is difference between using compressible solver and incompressible solver oilsok OpenFOAM Running, Solving & CFD 0 March 23, 2014 02:11
Using pressure based solver for compressible flows aamer Main CFD Forum 2 June 15, 2011 13:45
Compressible vs. Incompressible formulations Fernando Velasco Hurtado Main CFD Forum 3 January 7, 2000 17:51


All times are GMT -4. The time now is 17:14.