|
[Sponsors] |
"Calculate the relative velocity used to map the relative flux phi" in interDyMFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2014, 06:37 |
"Calculate the relative velocity used to map the relative flux phi" in interDyMFoam
|
#1 |
Member
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 13 |
hi !
In openfoam-2.2.0 interDyMFoam solver , there is a piece of code that Code:
while (runTime.run()) { #include "readControls.H" #include "alphaCourantNo.H" #include "CourantNo.H" #include "setDeltaT.H" runTime++; Info<< "Time = " << runTime.timeName() << nl << endl; scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime(); { // Calculate the relative velocity used to map the relative flux phi volVectorField Urel("Urel", U); if (mesh.moving()) { Urel -= fvc::reconstruct(fvc::meshPhi(U)); } // Do any mesh changes mesh.update(); } if (mesh.changing()) { Info<< "Execution time for mesh.update() = " << runTime.elapsedCpuTime() - timeBeforeMeshUpdate << " s" << endl; gh = g & mesh.C(); ghf = g & mesh.Cf(); } if (mesh.changing() && correctPhi) { #include "correctPhi.H" } if (mesh.changing() && checkMeshCourantNo) { #include "meshCourantNo.H" } twoPhaseProperties.correct(); #include "alphaEqnSubCycle.H" interface.correct(); // --- Pressure-velocity PIMPLE corrector loop while (pimple.loop()) ...... I am a little confused . I wonder where is Urel used to map the relative flux phi ? executing mapFields ? or we must use it ourselves by adding some lines of code in the solver ? could you help me ? |
|
Tags |
relative flux phi |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
relative velocity vectors | carno | FLUENT | 0 | May 9, 2008 07:59 |
Mass Flux vs Velocity Inlet | Sandra | FLUENT | 5 | July 20, 2005 14:09 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |
Relative velocity errors in cylindrical coords? | John | FLUENT | 0 | April 5, 2000 08:46 |