|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23 ![]() |
I would like to know how to change settings codewise rather than using the current IO functionality, like changing the temporal discretization rather than monitor the log file and do this manually. I would appreciate if someone could paste a snippet code example or point me to a relevant post, tried the search engine but failed utterly .
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 ![]() |
There is an example of a hard-coded temporal discretization scheme selection in the interFoam solver here:
/OpenFOAM-2.3.x/applications/solvers/multiphase/interFoam/alphaEqn.H That might give you a few hints as to how to go about what you're after. Cheers, Kyle |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23 ![]() |
Thank you Kyle!
|
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23 ![]() |
Quote:
Edit: One simple solution that I have implemented is by using system call. Then supply it with a string with the command : "sed -i s/XXX/YYY/g filename". I can of course augment it with much more complex instructions, but this is the most simple, then save this as .H file and include it whenever u wanna change parameter. Last edited by pi06jl6; November 19, 2014 at 13:18. Reason: Complement with my own solution |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible to change default settings? | pakk | FLUENT | 1 | January 15, 2021 01:23 |
Thermal phase change model | Piti | CFX | 1 | January 14, 2021 10:03 |
[ICEM] How do I change the background settings to default? | ansvad | ANSYS Meshing & Geometry | 3 | January 14, 2020 04:44 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 17:11 |
How to change molecular weight of a species in pdf-mixture | Jenny_W | FLUENT | 0 | November 3, 2012 16:49 |