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

dynamicRefineMent in compressible thermo cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2014, 18:15
Default dynamicRefineMent in compressible thermo cases
  #1
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Hello everyone,

I've been doing some experimenting with dynamic refinement in compressible solvers and have found a problem I am not sure how to deal with. I am using the dynamicRefineFvMesh on the aachenBomb which has been modified with a coarser starting geometry and a sprayDyMFoam solver which is a synthesis of rhoPimpleDyMFoam and sprayFoam.

For some reason, after solving rhoEqn, the density in the refined cells increases dramatically to the extent that the the solver eventually crashes. I have attached an image of the rho, p, U and C7H16 fields immediately after rhoEqn.H. I confirmed that rhoEqn.H is the cause as I also wrote out the fields just after mapping onto the refined mesh and before rhoEqn and the fields don't suffer the discontinuity.

Anyone have any ideas as to what could be causing this? It seems like the ddt(rho) term in the equation is what is causing the problem. I've included the dynamicMeshDict, fvSchemes and fvSolutions files for reference.

Thanks,
Attached Images
File Type: jpg sprayDyMFoam Comparison.jpg (52.3 KB, 23 views)
Attached Files
File Type: txt fvSchemes.txt (1.9 KB, 5 views)
File Type: txt fvSolution.txt (2.0 KB, 8 views)
File Type: txt dynamicMeshDict.txt (1.9 KB, 16 views)
mturcios777 is offline   Reply With Quote

Old   November 11, 2014, 07:05
Default
  #2
New Member
 
Fanglou
Join Date: Oct 2014
Posts: 9
Rep Power: 11
tjucus is on a distinguished road
Hello mturcios777:
Recently, I am trying to implement dynamic mesh refinement in sprayFoam solver,but I faid. As you have succeded sprayDyMFoam,I was wondering could you tell me in volScalarField YtfSource of YEqn.H file, what should I add,
dimensionedScalar("zero", parcels.*****().dimensions(),0.0)???????
great thanks in advance!
tjucus is offline   Reply With Quote

Old   November 12, 2014, 12:04
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Hi Tjucus,

This post should help you out:
http://www.cfd-online.com/Forums/ope...tml#post340938

Good luck!
Marco
mturcios777 is offline   Reply With Quote

Old   November 13, 2014, 05:22
Default
  #4
New Member
 
Fanglou
Join Date: Oct 2014
Posts: 9
Rep Power: 11
tjucus is on a distinguished road
Thanks a lot! I will try it!
Regards,
tjucus is offline   Reply With Quote

Old   November 13, 2014, 21:44
Default
  #5
New Member
 
Fanglou
Join Date: Oct 2014
Posts: 9
Rep Power: 11
tjucus is on a distinguished road
Hello mturcios 777
Sorry for bothering you again! I want to make some modification in the scalar Urel in the SprayParcel.C,to do this, the injection direction of injector a SprayParcel belongs to is necessary? Is there any function avaliable to get the inj direction in the SprayParcel.C, I also tried to use dictionary to look up the directions in the case files,but it seems that dictionary does not work in the SprayParcel? Could you help me solve this problem?
Great thanks in advance!
tjucus is offline   Reply With Quote

Reply


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
yPlusLES for compressible cases borrbyper OpenFOAM Bugs 3 March 29, 2013 19:23
How to speed up the simulation of a large amount of similar steady state cases tss Main CFD Forum 4 November 5, 2010 14:36
Compressible turbulence modeling userven OpenFOAM Running, Solving & CFD 0 May 5, 2006 00:37
Compressible vs. Incompressible formulations Fernando Velasco Hurtado Main CFD Forum 3 January 7, 2000 16:51
Compressible Viscous Code vaidation test cases? Mohammad Kermani Main CFD Forum 2 November 11, 1999 14:22


All times are GMT -4. The time now is 01:30.