CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

"Master-file" for global definitions?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 13, 2012, 13:27
Default "Master-file" for global definitions?
Senior Member
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 182
Blog Entries: 1
Rep Power: 9
Linse is on a distinguished road
Dear all,

At the moment I am trying to implement a variable that is generally available within OpenFOAM. I have even gone as far as thinking about it being implemented as a pointer only.
Nevertheless all the ideas come back to some crucial point: Is there anything like a "master-file" that contains something like the "main()"-function commonly seen in C++?

A second thought was to orient myself at the implementation of the variable "psi", which seems to be the variable that is solved for in any of the equations. (Am I right at that point?) But again: Where is this variable defined? Then I could use the same file as some kind of blueprint for implementing my variable that would be available at least at most points of the code...

Thanks for any answers already in advance!
Linse is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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