multiphaseEulerFoam with Dynamic Mesh

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

 November 4, 2016, 15:09 multiphaseEulerFoam with Dynamic Mesh #1 New Member   Alex Machado Join Date: Feb 2014 Location: Brazil Posts: 8 Rep Power: 8 Hello People, I'd like know if there is a solver based on multiphaseEulerFoam with mesh movement. Something like interDyMFoam. The problem I want to solve don't have mesh deformation, just movement.

 November 7, 2016, 05:28 #2 Member   Brian Willis Join Date: Mar 2011 Location: Cape Town, South Africa Posts: 58 Rep Power: 11 I don't think there it exists yet.

February 12, 2017, 10:00
#3
New Member

Join Date: Feb 2014
Location: Brazil
Posts: 8
Rep Power: 8
I am trying to modified multiphaseEulerFoam based on multiphaseInterFoam in order to include dynamic mesh.
However, I don't know what to do with the part of the code below, more to the point, in multiphaseEulerFoam I have one velocity equation for each phase, while multiphaseInterFoam I have only one velocity field. Does anyone know how to do a loop for all the phases?

Quote:
 if (mesh.changing()) { Info<< "Execution time for mesh.update() = " << runTime.elapsedCpuTime() - timeBeforeMeshUpdate << " s" << endl; gh = (g & mesh.C()) - ghRef; ghf = (g & mesh.Cf()) - ghRef; } if (mesh.changing() && correctPhi) { // Calculate absolute flux from the mapped surface velocity phi = mesh.Sf() & Uf; #include "correctPhi.H" // Make the flux relative to the mesh motion fvc::makeRelative(phi, U); fluid.correct(); } if (mesh.changing() && checkMeshCourantNo) { #include "meshCourantNo.H" }
Attached Files
 multiphaseEulerDyMFoam.C (4.5 KB, 18 views)

June 4, 2019, 05:21
#4
New Member

liliu
Join Date: Nov 2018
Posts: 12
Rep Power: 4
Quote:
 Originally Posted by amachado I am trying to modified multiphaseEulerFoam based on multiphaseInterFoam in order to include dynamic mesh. However, I don't know what to do with the part of the code below, more to the point, in multiphaseEulerFoam I have one velocity equation for each phase, while multiphaseInterFoam I have only one velocity field. Does anyone know how to do a loop for all the phases?

Do you successfully implement this solver?