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

buoyantPimpleDyMFoam diverge when mesh deforming

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2015, 00:32
Question buoyantPimpleDyMFoam diverge when mesh deforming
  #1
New Member
 
Sumit Singh
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Sumit07 is on a distinguished road
Hi
I have combined buoyantPimpleFoam with pimpleDyMFoam to create new solver buoyantPimpleDyMFoam.
In buoyantPimpleFoam, I just modified buoyantPimpleFoam and pEqn to create buoyantPimpleDyMFoam.
In buoyantPimpleDyMFoam.c I added

mesh.update();
// Calculate absolute flux from the mapped surface velocity
phi = mesh.Sf() & Uf;
if (mesh.changing() && correctPhi)
{
#include "correctPhi.H"
}
// Make the flux relative to the mesh motion
fvc::makeRelative(phi, rho, U);
if (mesh.changing() && checkMeshCourantNo)
{
#include "meshCourantNo.H"
}
before Pressure-velocity PIMPLE corrector loop

and in pEqn I added
{
Uf = fvc::interpolate(rho*U);
surfaceVectorField n(mesh.Sf()/mesh.magSf());
Uf += n*(phi/(mesh.magSf()) - (n & Uf));
}
// Make the fluxes relative to the mesh motion
fvc::makeRelative(phi, rho, U);
at the end.

Also I change creatUf.H to compressibleCreateUf.H in which I changed fvc::interpolate(U) to fvc::interpolate(rho*U).

It will show good result until mesh start to move and get diverge. Velocity increase in the portion where mesh get stretched and reduced where mesh get compressed. I have attached result just before the solution get blow up.
Can some one tell me why this is happening ?

Regards
Attached Images
File Type: png 2.png (54.4 KB, 27 views)
File Type: jpg 1.jpg (99.5 KB, 28 views)
Sumit07 is offline   Reply With Quote

Old   May 3, 2017, 08:16
Default
  #2
Member
 
Alex Jarosch
Join Date: Dec 2015
Location: Austria
Posts: 32
Rep Power: 10
alexj is on a distinguished road
Hi Sumit,

I am currently also working on implementing a buoyantPimpleDyMFoam and got stuck with the same dimensions mismatch that you described in another post (http://www.cfd-online.com/Forums/openfoam-programming-development/154495-buoyantpimpledymfoam-dimension-mismatch-between-uf-phi.html).

Well I did not manage to finish the work yet, say my solver compiles but does not work. Did you progress with your work to the level that the solver was usable. If so would you be willing to share some details either via personal email or here on the forum (surely preferred by the community).

My guess why your solver diverges is that somehow the fluxes do not get corrected during the deforming/moving mesh, did you implement that?

Any discussion and help would be highly appreciated by me.
Kind regards,
Alex
alexj 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 05:39
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
Liquid Volume Error when VOF + Deforming Mesh Used NCle CFX 8 June 8, 2012 13:07
Moving and deforming mesh paolo FLUENT 0 June 19, 2003 08:12


All times are GMT -4. The time now is 12:28.