CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Reading of fvOptions (https://www.cfd-online.com/Forums/openfoam-programming-development/236164-reading-fvoptions.html)

Pyrokrates May 17, 2021 03:58

Reading of fvOptions
 
Hey,


I would like to change the Input file "fvOptions" in constant folder. Therfore I need to know where and how openFOAM reads the data from fvOptions. Does anybody know where the programm gets the data? fvOptions.C and fvOptions.H does not seem to read the data. It looks like the reading is done earlier in the process.



Thanks in advance




Chris

mAlletto May 17, 2021 06:52

The reading of a fvoption is done via a dictionary. https://www.openfoam.com/documentati...8C_source.html

Pyrokrates May 17, 2021 07:15

Hi mAlletto,


thanks for your reply.

So if I understand correctly, fvOptionIO.C and fvOptionIO.H read my fvOptions file in constant folder.
If I want to implement DarcyForchheimer as explicityPorousScource, how does it read my data. I mean how does openFoam read the fvOptions specific for the model and give them to DarcyForchheimer.C and .H. My problem is that I canīt find the whole connection from fvOption.H in the Ueqn.H up to DarcyForchheimer.C.


It should be something like fvOptionIO reads my text file and calls porosityModels in some way and inside this i can find DarcyForchheimer. But do you know how the connection is exactly or how I can find it? The API with all the namespaces and classes combined with all that variables seems so confusing for me.


Thanks in advance




Chris


All times are GMT -4. The time now is 17:30.