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

Representing controlDict information using OpenFOAM classes

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2010, 18:11
Default Representing controlDict information using OpenFOAM classes
  #1
New Member
 
Join Date: Mar 2010
Posts: 3
Rep Power: 7
sanatan is on a distinguished road
Hi,

What are the OpenFOAM class/API methods to define the information in the controlDict file under the system folder of the root case structure? I would like to define the simulation control information programmatically using the OpenFOAM API.

Once I have defined all the simulation control information, I can choose to either write it out to the root case structure or feed it to OpeFOAM programmatically (using API calls).

How can I accomplish this?

Thanks.
sanatan is offline   Reply With Quote

Old   March 26, 2010, 18:18
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Well, first I have to confess I'm not exactly sure what you want to do!

If you are talking about API as an interface to some kind of your own software, maybe you should get in touch with the guy from http://www.discretizer.org/

He is doing a project called Discretizer::Setup which is feeding the OpenFOAM solver from his meshing software. Maybe this is a hint ...?!?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 27, 2010, 14:27
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 3
Rep Power: 7
sanatan is on a distinguished road
OpenFOAM has an extensive API and data structures to reperesent flow simulation information. I just need to know how to represent the information in the controlDict file using OpenFOAM.

If my earlier question is not clear then another way to ask the same question is when OpenFOAM parses a case what are the classes/data structures it uses to load the information in the controlDict file into memory?

The reason for my question is that I want to prepare and run the simulation programmatically instead of using the manual steps.


Thanks,
Sanatan
sanatan is offline   Reply With Quote

Old   March 27, 2010, 15:20
Default
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Ok, I have really no idea what you are talking about.
But this is due to tha fact that I don't have that much programming experience.

Maybe you can check the Doxygen and look up the source code of some solver to get a feeling how it will access the dictionaries.
(If that is what you are talking about - which I'm not sure of.)

Good luck.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   February 28, 2012, 07:46
Default
  #5
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 178
Blog Entries: 1
Rep Power: 7
Linse is on a distinguished road
Though late, but maybe it helps...

Did you already check how the information from groovyBC gets into the simulations? For this you add a line within the controlDict and everything works fine.
Thus, maybe looking for the interconnection groovyBC-controlDict does give any further hints on how to achieve your problem?
Linse is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
information about moving mesh in openfoam sambatra OpenFOAM Running, Solving & CFD 2 March 26, 2009 12:16
Problems in representing convected derivatives in OpenFoam titio OpenFOAM Running, Solving & CFD 1 February 16, 2009 16:01
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33


All times are GMT -4. The time now is 19:21.