|
[Sponsors] |
January 13, 2021, 09:38 |
|
#3 |
Senior Member
|
Hi Domenico,
I think it is just a placeholder in the sense that the rhoPimpleFoam solver needs a solver entry for rho or rhoFinal, but internally it uses always the diagonal solver. I just changed the nthn solver into xnthn and it also runs. Using a grep nthn from my OpenFOAM installation folder only gives this output: Code:
~/OpenFOAM/OpenFOAM-v2012>grep -r nthn . ./tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/system/fvSolution: solver nthn; ./tutorials/compressible/rhoPimpleFoam/RAS/squareBendLiq/system/fvSolution: solver nthn; Best Regards, Tom |
|
January 13, 2021, 13:42 |
|
#4 |
Senior Member
|
Dear Tom,
Thank you for your reply. My understanding is that rhoPimpleFoam is a pressure-based solver and that the density is updated from the pressure using the equation of state implemented in the thermodynamics as explained e.g. in this post [1]. A solver for density thus seems to be superfluous. Hence my confusion. Could you please elaborate? Thanks, Domenico. [1] How rho_ and psi_ are calculated in compressible solvers of OpenFOAM? |
|
January 14, 2021, 05:42 |
|
#5 |
Senior Member
|
Dear Domenico,
I have to say I only tried to find any reference to the nthn part, but I just looked at the solver which reads for v2012: rhoPimpleFoam.C: Code:
if (pimple.firstIter() && !pimple.SIMPLErho()) { #include "rhoEqn.H" } src/finiteVolume/cfdTools/compressible/rhoEqn.H: Code:
{ fvScalarMatrix rhoEqn ( fvm::ddt(rho) + fvc::div(phi) == fvOptions(rho) ); fvOptions.constrain(rhoEqn); rhoEqn.solve(); fvOptions.correct(rho); } As to why this is necessary, I would have to spend more time than I have available I am afraid. I can imagine it has something to do with mesh motion at least and mass conservation as described above. Best Regards, Tom |
|
January 15, 2021, 08:32 |
|
#7 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
I am pretty sure nthn is short for nothing. Hence no solver specified.
An easy way to see if you need to define something is to comment out the entire block: Code:
/* "rho.*" { solver nthn; } */ You can also try Code:
"rho.*" { solver banana; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I refer to gas constant? | KeiJun | OpenFOAM Programming & Development | 3 | January 7, 2016 19:54 |
Refer an external image in figure in cfd post | kar.coep | ANSYS | 0 | July 27, 2015 07:02 |
RMS P-vol . what does it refer to? | hmasenger | CFX | 5 | August 23, 2013 03:14 |
Which Book i have to refer for Fluid dynamics? | premal | Main CFD Forum | 0 | July 28, 2012 09:20 |
Newbie: why don't I hear anyone refer to Re in FEM and FD methods? | bzz77 | Main CFD Forum | 6 | January 12, 2012 16:16 |