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

What is the difference between phiU and HybA

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2020, 21:49
Default What is the difference between phiU and HybA
  #1
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
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 is offline   Reply With Quote

Old   May 25, 2020, 15:22
Default
  #2
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
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
saj216 is offline   Reply With Quote

Old   May 26, 2020, 03:38
Default
  #3
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
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
2538sukham likes this.
dlahaye is offline   Reply With Quote

Reply

Tags
incompressible, peqn.h, pressure


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



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