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

adding energy equation to pUCoupledFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2020, 12:14
Default adding energy equation to pUCoupledFoam
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Foamer
The pUCoupledFoam solver coupled velocity and pressure as 4 quantities and solve them as coupled manner.
Calculating phi in this solver is some different from the segregate fluid solver such as icoFoam. In pUCoupled solver
Quote:
phi = (fvc::interpolate(U) & mesh.Sf()) + pEqn.flux() + presSource;
but in icoFoam is
Quote:
phi = (fvc::interpolate(U) & mesh.Sf());
adjustPhi(phi, U, p);
if (piso.finalNonOrthogonalIter())
{
phi -= pEqn.flux();
}
The problem is come when I want to add temperature equation as energy in solver. the TEqn is
Quote:
fvScalarMatrix TEqn
(
fvm::ddt(T)
+fvm::div(phi,T)
-fvm::laplacian(DT,T)
);
TEqn.solve()
by locating the TEqn in pUCoupledFoam and running some cases, I found some diverge in temperature. I think the problem comes from phi in div(phi,T), but by change the location of TEqn in code the problem still exist.
Anybody have ideas?
Thanks
Hgholami is offline   Reply With Quote

Reply

Tags
pucoupledfoam, temperature equation


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiRegionHeater error ordinary OpenFOAM Running, Solving & CFD 2 June 9, 2020 18:43
Adding Energy Equation for porousSimpleFoam yesaswi92 OpenFOAM Programming & Development 20 April 13, 2018 09:17
help adding the energy equation to porousinterfoam using the enthalpy formulation nadine OpenFOAM Programming & Development 18 June 17, 2014 09:39
Questions about the energy equation aestas Fluent UDF and Scheme Programming 5 April 6, 2014 12:28
SIMPLE and energy equation convergence Fabio Main CFD Forum 0 June 1, 2007 07:06


All times are GMT -4. The time now is 07:03.