CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Reading of fvOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2021, 03:58
Default Reading of fvOptions
  #1
Member
 
Chris
Join Date: Dec 2020
Posts: 45
Rep Power: 5
Pyrokrates is on a distinguished road
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

Last edited by Pyrokrates; May 25, 2021 at 05:16.
Pyrokrates is offline   Reply With Quote

Old   May 17, 2021, 06:52
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
The reading of a fvoption is done via a dictionary. https://www.openfoam.com/documentati...8C_source.html
mAlletto is offline   Reply With Quote

Old   May 17, 2021, 07:15
Default
  #3
Member
 
Chris
Join Date: Dec 2020
Posts: 45
Rep Power: 5
Pyrokrates is on a distinguished road
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

Last edited by Pyrokrates; May 25, 2021 at 05:16.
Pyrokrates is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 18:19
execFlowFunctionObjects - unknown field problem Toorop OpenFOAM Post-Processing 16 March 14, 2016 03:25
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51


All times are GMT -4. The time now is 07:32.