|
[Sponsors] |
May 11, 2021, 07:48 |
Input for porousMedia via fvOptions
|
#1 |
Member
Chris
Join Date: Dec 2020
Posts: 45
Rep Power: 5 |
Hi,
I would like to change the way, I can input porosity for my medium. I know that i can use fvOptions to define porous media and set d and f coeffs. I would like to define this locally later on due to inhomogeneous material and porosity. I know I could define multiple cellZones for each permeability to set d and f local but I need to do this with thousands of cells meaning the better way for me would be to give a field of d and f coeffs out of another program (in my case python calculates K local) instead of hundreds of porostiy zones. Now I would like to change the input but I dont understand the whole file system. What I know so far: 1) porousSimpleFoam uses Ueqn.H with fv.Options(U) on right hand side. Thats why I need to use #include "fvOptions.H" at porousSimpleFoam.C. 2) Now the part that confusing me starts. 2.1) fvOptions.C and fvOptions.H are also coupled with fvOption.C and fvOption.H and same with fvOptionList. But I cant finde the connection to DarcyForchheimer.H and DarcyForchheimer.C. This construct seems too confusing for me :/ 2.2) To solve Ueqn and peqn I need to import the .H files with the equations. For DarcyForchheimer the equations are at the .C files... I thought .H are header files to define Variables etc. and .C are the scource files to solve equations or am I wrong with this. If I could understand all the connections I may be able to replace all this and pass a field of K or directly d and f coeffs to the field of DarcyForchheimer equations for calculating the results. Thanks in advance for any help. Chris Last edited by Pyrokrates; May 25, 2021 at 06:16. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Correct foamfile header for input file with mixed quantities (any version of OF) | deepbandivadekar | OpenFOAM Running, Solving & CFD | 3 | February 15, 2021 06:10 |
What are the units used in the thermophysicalProperties and fvOptions dictionaries? | ophr | OpenFOAM Pre-Processing | 2 | June 16, 2019 02:29 |
Configuration of boundary conditions and fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 16 | May 3, 2019 17:35 |
Power and Enthalpy in fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 1 | April 26, 2019 11:03 |
[OpenFOAM] Paraview 3.98 - errors when saving geometry file | pajot | ParaView | 1 | September 28, 2013 11:45 |