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

Modifications on Transonic option in compressibleInterFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2018, 22:55
Default Modifications on Transonic option in compressibleInterFoam
  #1
Member
 
Kalpana Hanthanan Arachchilage
Join Date: May 2015
Location: Orlando, Florida, USA
Posts: 30
Rep Power: 11
kal1943335 is on a distinguished road
Dear all,
I'm trying to simulate high pressure gas atomization using compressibleInterFoam. However, I'm having a really hard time dealing with high pressure gas inlets (around 30atm) and temperature fluctuations. I'm using OF 4.0 and recently I found that transonic option in compressibleInterFoam isn't working well. However, they made some modifications in the development versions. When I cross checked the modifications, I found that they have modified pEqn.H and TEqn.H.

I managed to add the modifications in the TEqn.H into my solver successfully. (adding the ContErr terms and I separated the positive and negative source terms in order to improve the diagonal dominance). However, making the changes in pEqn.H seems little bit complex. It compiled without giving me any error, but giving me a runtime error. It refers to the modifications made in src/finiteVolume. (As you can see below the scalarmatrix p_rghEqnComp1 is scaled by pos(alpha1) and apparently it's not allowed in OF40 src).

PHP Code:
        p_rghEqnComp1 =
            
pos(alpha1)
           *(
                (
                    
fvc::ddt(alpha1rho1) + fvc::div(alphaPhi1*rho1f)
                  - (
fvOptions(alpha1mixture.thermo1().rho())&rho1)
                )/
rho1
              
fvc::ddt(alpha1) - fvc::div(alphaPhi1)
              + (
alpha1/rho1)
               *
correction
                
(
                    
psi1*fvm::ddt(p_rgh)
                  + 
fvm::div(phid1p_rgh) - fvm::Sp(fvc::div(phid1), p_rgh)
                )
            ); 
According to the bug report it's already implemented in of 5.x and development version. However, I have to stick with OF 4.0 as our school cluster only has that version. I think this can be solved by adding the modifications to the finiteVolume library (May be by having a localized finiteVolumeNew library inside the solver and use it only for the compressibleInterFoam solver). I have some programming knowledge in c++ but don't have much experience dealing with libraries and I really don't want to mess the installation.

Really appreciate if someone can help me with this.

Thanking you in advance,
Kalpana
kal1943335 is offline   Reply With Quote

Reply

Tags
compressibleinterfoam, openfoam programming, transonic flow


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
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 14:32
particle tracking sakurabogoda CFX 7 December 5, 2013 00:12
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 16:52.