|
[Sponsors] |
Where is the velocity flux phi initialised in Openfoam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 8, 2020, 07:41 |
Where is the velocity flux phi initialised in Openfoam?
|
#1 |
New Member
hari
Join Date: Jun 2020
Posts: 1
Rep Power: 0 |
At very beginning of the simulation, where is phi calculated /initialised?
I am aware that phi is calculated according to, phi = (fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rUA, U, phi); But at the very beginning of the simulation we have to form Ueqn using phi, unfortunately we don't have rUA at the beginning of simulation. So I am curious to know how phi is initialised? |
|
June 8, 2020, 08:25 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
||
June 10, 2020, 05:26 |
|
#3 | |
Member
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 7 |
Quote:
I think this question occures very often and has been answered several times. Just use the search function. Never the less I give you some additional advice, look into createField files of the solver source code for example in icoFoam: /applications/solvers/incompressible/icoFoam Code:
Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); #include "createPhi.H" Code:
Global createPhi Description Creates and initialises the relative face-flux field phi. \*---------------------------------------------------------------------------*/ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "Reading/calculating face flux field phi\n" << endl; surfaceScalarField phi ( IOobject ( "phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), fvc::flux(U) ); // ************************************************************************* // On the other hand there are also solvers that have no: Code:
#include "createPhi.H" Code:
U = dimensionedVector(U.dimensions(), Zero); surfaceScalarField phi ( IOobject ( "phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), fvc::flux(U) ); Code:
fvc::flux(U) Code:
phi = (fvc::interpolate(U) & mesh.Sf()) I have also seen versions where the "fvc::" is not put in front like in "createPhiv.H" . I also don't know why that is.(and where/what phiv is used for) Code:
surfaceScalarField phiv ( IOobject ( "phiv", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), flux(U) ); |
||
Tags |
icofoam, rheofoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |
pressure and velocity in OpenFoam is smaller than Fluent | mechy | OpenFOAM | 4 | September 18, 2013 17:19 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |