|
[Sponsors] |
InterDyMfoam gives strange gamme if cell volume changes due to mesh motion |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2009, 05:32 |
Hi,
I am using interDyMfoam
|
#1 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
Hi,
I am using interDyMfoam in combination with mesh motion. It gives strange gamma values if cell volume changes due to mesh motion. Find attached a free surface test case (derived from icoDyMFoam's the movingCone) an an animation showing the results. The lower plots in the animation shows the MULES result: gamma is exceeding one, if the cell volume is decreasing due to mesh deformation; gamma is nonphysically reduced if cell volume is increasing. I used solidBody motionMesh (constant cell volume) without this problems. I tracked the error down to MULES. Find attached a simplified interDyMFoam, which uses (instead of MULES) a simple scalar transport equation for gamma (in gammEqn2.H). The result is plotted in the bottom plot of the attached animation. MULES interface compression feature is highly desirable, thus I would like to use MULES in combination with moving mesh. So, anybody any hint? Thanks Daniel |
|
January 29, 2009, 05:37 |
Hi,
and here the attachment
|
#2 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
||
January 29, 2009, 16:16 |
Hi, Daniel,
I downloaded yo
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Hi, Daniel,
I downloaded your solver and case, but, it requires MULES2.H (which you developed?). can you email me the code or post it here so that I can do some testing? thanks Pei peiying2003@yahoo.com |
|
January 29, 2009, 16:19 |
Hi, Daniel,
I downloaded yo
|
#4 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Hi, Daniel,
I downloaded your solver and case, but, it requires MULES2.H (which you developed?). can you email me the code or post it here so that I can do some testing? thanks Pei peiying2003@yahoo.com |
|
January 30, 2009, 05:30 |
Hi Pei,
sorry for the incon
|
#5 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
Hi Pei,
sorry for the inconvenience. MULES2 was an unsuccessful attempt to solve the problem myself. Here is a version without MULES2 Daniel movingGridFSproblemV2.tgz |
|
January 30, 2009, 16:36 |
Hi,
maybe I got a clue. I g
|
#6 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
Hi,
maybe I got a clue. I guess the trouble is in the volume change term in MUSESTemplates.C line 111. If nGammaSubCycles is larger than 0, it is evaluated multiple times (once in each subcycle) and adds to much gamma. Setting nGammaSubCycles to 0 cures the problem. Daniel |
|
January 30, 2009, 17:48 |
Hi again,
I have a solution
|
#7 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
Hi again,
I have a solution, but one needs nGammaSubCycles within MULES. In src/finiteVolume/fvMatrices/solvers/MULES/MULESTemplates.C: 111c111 < mesh.V0()*rho.oldTime()*psi0/(deltaT*mesh.V()) --- > pow((mesh.V0()/mesh.V()),(1./nGammaSubCycles)) *rho.oldTime()*psi0/deltaT This works fine with nGammaSubCycles >0. What is the most elegant way to get nGammaSubCycles in MULES? Look it up from the dict or add to the MULES2::explicitSolve parameterlist? Daniel |
|
March 23, 2009, 12:47 |
|
#8 |
New Member
Lukas Fischer
Join Date: Mar 2009
Location: Innsbruck, Austria
Posts: 15
Rep Power: 17 |
is there already a solution to this problem? how is it possible to get the nGammaSubCycles into MULES?
Last edited by lukasfischer; April 6, 2009 at 12:41. |
|
April 7, 2009, 10:31 |
|
#9 |
New Member
Lukas Fischer
Join Date: Mar 2009
Location: Innsbruck, Austria
Posts: 15
Rep Power: 17 |
We (me and Mr. Scholochow) modified the MULES solver to include the nGammaSubCycles. It is passed as an argument to MULES::explicitSolve().
Code:
MULES::explicitSolve(gamma, phi, phiGamma, 1, 0,nGammaSubCycles); To use the modified version extract the files to .../src/finiteVolume/fvMatrices/solvers/MULES/ and recompile the libfiniteVolume.so (wmake libso in .../src/finiteVolume/). Solvers using MULES have to pass nGammaSubCycles. Change calls to MULES::explicitSolve in the gammaEqn.H in the solver as mentioned above. regards [update: corrected the code so the interface is really preserved] Last edited by lukasfischer; April 9, 2009 at 07:06. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Oscillatory mesh motion setup mesh flux ERROR | jaswi | OpenFOAM Running, Solving & CFD | 5 | August 23, 2007 05:41 |
Negative volume in mesh motion | skarp | CFX | 5 | July 12, 2007 00:51 |
How to fix a volume cell? | jpsegura | FLUENT | 0 | May 31, 2007 19:42 |
negative cell volume in dynamic mesh | WU zhonghua | FLUENT | 0 | July 28, 2004 11:04 |
Cell-vertex and cell-centered finite volume method | Praveen | Main CFD Forum | 4 | September 9, 2003 00:58 |