|
[Sponsors] |
February 5, 2019, 00:27 |
explain implications of this comment
|
#1 |
Member
Join Date: Oct 2013
Posts: 92
Rep Power: 13 |
Hi Forum,
I am porting my code from OF-6 to OF-dev (latest) what are the implications of of this commits https://github.com/OpenFOAM/OpenFOAM...c39005b2091117 https://github.com/OpenFOAM/OpenFOAM...c39005b2091117 mesh.solver is no longer present, then how can i specify that for this equation this particular solver settings, I have two separate pressure equations and I have two different settings in fvSolution but for second equation is constructed using a copy of the original pressure how can I tell OF to use the settings for the other equation? |
|
February 5, 2019, 13:58 |
|
#2 | |
Senior Member
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13 |
Quote:
|
||
February 6, 2019, 19:19 |
|
#3 | |||
Member
Join Date: Oct 2013
Posts: 92
Rep Power: 13 |
Quote:
Quote:
Code:
// Pressure corrector fvScalarMatrix pEqn ( fvm::ddt(psi, p) + fvc::div(phiHbyA) - fvm::laplacian(rhorAUf, p) == fvOptions(psi, p, rho.name()) ); fvOptions.constrain(pEqn); pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter()))); if (pimple.finalNonOrthogonalIter()) { phi = phiHbyA + pEqn.flux(); } Quote:
Code:
fvScalarMatrix pressureEqn ( fvm::laplacian(rhorAUf, pressure) - fvm::ddt(psi, pressure) == Rm_ //Rm_TA ); pressureEqn.setReference(pressureRefCell, pressureRefValue); pressureEqn.solve(mesh_.solver("pressure")); //how would I give this info? if (nonOrth == nNonOrthCorr) { phiFVstage3 = -pressureEqn.flux(); } |
||||
February 6, 2019, 20:09 |
|
#4 | |
Senior Member
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13 |
Quote:
Code:
fvScalarMatrix pressureEqn ( fvm::laplacian(rhorAUf, pressure) - fvm::ddt(psi, pressure) == fvOptions(???) ); fvOptions.constrain(pressureEqn); |
||
March 22, 2019, 00:44 |
|
#5 | |
Member
Join Date: Oct 2013
Posts: 92
Rep Power: 13 |
Quote:
Anyway it seems, this is a API simplification it seems, pEqn.solve() will find apply the fvSolution settings for the appropriate variable automatically. This hasn't affected me at all. (adversley or otherwise). I would mark this thread solved, if anyone with intimate knowledge of the API can definitively answer this. |
||
Tags |
development, new code, openfoam, pressure |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] fluent3DMeshToFoam | bego | OpenFOAM Meshing & Mesh Conversion | 31 | August 16, 2023 10:04 |
[Commercial meshers] COnvert FLuent MEsh to openfoam with interface | manuc | OpenFOAM Meshing & Mesh Conversion | 1 | July 25, 2017 04:13 |
[Commercial meshers] converting Fluent mesh to openfoam standard mesh | deepesh | OpenFOAM Meshing & Mesh Conversion | 31 | March 29, 2017 06:59 |
dsmcInitialise - dsmcFoam | archymedes | OpenFOAM Pre-Processing | 94 | July 15, 2016 17:14 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |