CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   What is the difference between phiU and HybA (https://www.cfd-online.com/Forums/openfoam-programming-development/227322-what-difference-between-phiu-hyba.html)

saj216 May 24, 2020 20:49

What is the difference between phiU and HybA
 
this relates to an incompressible solver. I have updated a modified solver by relating it to interFoam to openfoam 7 from openfoam 2.4. However it treats phiU with HybA instead. I wish to understand the difference if any so I can minimise errors.

So can someone tell me the difference between the two.
1) (openfoam version 2.4)
volScalarField rAU(1.0/UEqn.A());
surfaceScalarField rAUf(fvc::interpolate(rAU));

U = rAU*UEqn.H();

surfaceScalarField phiU
(
"phiU",
(fvc::interpolate(U) & mesh.Sf())
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
);
fvOptions.makeRelative(phiU);

adjustPhi(phiU, U, p_rgh);

2) (openfoam 7.0)
{
volScalarField rAU(1.0/UEqn.A());
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU));
volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p_rgh));

surfaceScalarField phiHbyA
(
"phiHbyA",
(fvc::interpolate(HbyA) & mesh.Sf())
+ MRF.zeroFilter(fvc::interpolate(rho*rAU)*fvc::ddtC orr(U, phi))
);
MRF.makeRelative(phiHbyA);

adjustPhi(phiHbyA, U, p_rgh);


Thank you

saj216 May 25, 2020 14:22

I've believe I have resolved this. It is due to the changes made in openfoam version 2.1 i think. Which changed phiU to phiHbyA

dlahaye May 26, 2020 02:38

Possibly any of below helps.

1. Extensive list on http://sourceflux.de/blog/101-things...ting-openfoam/
2. Moukalled, Manga and Darwish, The finite volume method in computational fluid dynamics, Springer 2015 , http://www.springer.com/gp/book/9783...14/6.2018-1955
3. General introduction and subsequently moving into interFOAM http://infofich.unl.edu.ar/upload/3b...8wXLbV3yHH34UU
4. Wolf Dynamics: http://www.wolfdynamics.com/our-serv...ing.html?id=50
5. From simple to more detailed http://www.hpc.lsu.edu/training/week...f_20160224.pdf


All times are GMT -4. The time now is 19:18.