|
[Sponsors] |
Representing controlDict information using OpenFOAM classes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 26, 2010, 18:11 |
Representing controlDict information using OpenFOAM classes
|
#1 |
New Member
Join Date: Mar 2010
Posts: 3
Rep Power: 16 |
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. |
|
March 26, 2010, 18:18 |
|
#2 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
March 27, 2010, 14:27 |
|
#3 |
New Member
Join Date: Mar 2010
Posts: 3
Rep Power: 16 |
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 |
|
March 27, 2010, 15:20 |
|
#4 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
February 28, 2012, 07:46 |
|
#5 |
Senior Member
|
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? |
|
|
|
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 06: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 10:33 |