CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to know if solver is considering my porous region? (https://www.cfd-online.com/Forums/openfoam-solving/210732-how-know-if-solver-considering-my-porous-region.html)

deepbandivadekar November 2, 2018 11:49

How to know if solver is considering my porous region?
 
Hello!

I have been dabbling with different compressible solvers for my porous flow problem. Lately, I have been wondering how to make sure that the solver is using the porosity dictionary I have defined. In the log file, no indication of any sort is seen.

How I tested this is by running two cases, one with porous region defined and another without. There's minor difference between the two and that could change (and get bigger) depending on porosity coefficients used. But is there any better, clear way of knowing if the porous region as defined by the porosityProperties is being used (for that matter any such dictionary) in the calculations?


Thanks!

deepbandivadekar November 5, 2018 13:03

Code:

find /opt/openfoam6/applications/solvers/compressible -type f | xargs grep -r 'Reading'
gives me this:

Code:


/opt/openfoam6/applications/solvers/compressible/rhoSimpleFoam/createFields.H:Info<< "Reading thermophysical properties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/rhoSimpleFoam/createFields.H:Info<< "Reading field U\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/sonicLiquidFoam/readTransportProperties.H:Info<< "Reading transportProperties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/sonicLiquidFoam/createFields.H:Info<< "Reading field p\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/sonicLiquidFoam/createFields.H:Info<< "Reading field U\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/sonicLiquidFoam/readThermodynamicProperties.H:    Info<< "Reading thermodynamicProperties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/createFields.H:Info<< "Reading thermophysical properties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/sonicFoam/createFields.H:Info<< "Reading field U\n" << endl;
/opt/openfoam6/applications/solvers/compressible/rhoCentralFoam/createFields.H:Info<< "Reading thermophysical properties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/rhoCentralFoam/createFields.H:Info<< "Reading field U\n" << endl;
/opt/openfoam6/applications/solvers/compressible/rhoPimpleFoam/createFields.H:Info<< "Reading thermophysical properties\n" << endl;
/opt/openfoam6/applications/solvers/compressible/rhoPimpleFoam/createFields.H:Info<< "Reading field U\n" << endl;

So the thermophysicalProperties are being read but there's no mention of any attempt to read porosityProperties.


Anyone knows?


All times are GMT -4. The time now is 05:15.