|
[Sponsors] |
OpenFOAM programming to load certain number of case files it-self? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 17, 2016, 13:35 |
OpenFOAM programming to load certain number of case files it-self?
|
#1 |
Member
|
User has created one case file which will run for 3000 time-steps, now the problem is finished with use of all time-steps. However, at this time, user wants OpenFOAM software 'itself' to load next .cas file which is made of its own Independent settings from the first one, and run the file with its own settings, get initialized by itself and run for another 3000 time-steps, using specific way of coding, is it possible for OpenFOAM to program like this any type of application, lets say 2phaseEulerFoam, if yes, How to do this?
Kindly show me with some examples, if there is any tutorial with certain set of commands in it, please show me. I asked same type of question in ANSYS FLUENT forum, but I have more faith on OpenFOAM, because its more robust, although coding makes it little bit difficult Thank You, Regards, Ash Kot, University of North Dakota, USA |
|
October 18, 2016, 04:49 |
|
#2 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi,
could you be more explicit? If you want to run different cases in different folders, what you can do is to create a terminal script, where you change your path, and you run other case. |
|
October 19, 2016, 02:59 |
|
#3 |
Member
|
in fluent, if you have experience with it, we can write journal or Scheme language file (TUI commands), and can load the cases one by another. And even if each case is independent of each other fluent, understand those, and gives proper results.
Also in fluent we can write UDF functions regarding profiles of boundary conditions, based on flow time or time step, for example, changing mass flow rate based on flow time. is there anything like that in OpenFOAM, if it is, can you direct me to the informational material. |
|
October 19, 2016, 04:39 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Are you at all familiar with Linux and OpenFOAM?
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
October 19, 2016, 05:15 |
|
#5 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hi,
Good Morning. Why dont you use a simple bash script to call each Simulation one after the other? Example...: #/bin/bash simpleFoam -case <full path to case -1> simpleFoam -case <full path to case - 2> etc...etc... This way, you can simulate one case after the other... However, the better way to do this would be to use some kind of load balancing System like "HTCondor".. then you can just submit multiple cases to the Queue, and they will be simulated either simultaneously, or one after the other depending on what resources the Computer has available. Regards, Philippose |
|
October 19, 2016, 07:32 |
|
#6 | ||
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Quote:
Quote:
The main difference between Fluent and OpenFOAM about this, is that Fluent uses its own terminal, so you can do as you say (open this case and so on), but OpenFOAM uses the Linux terminal so to use it as you want you need to play with the terminal. It does not seems a bad idea that HTCondor you talk about, Philippose, specially for parametric studies. I will take a look! |
|||
November 5, 2016, 06:52 |
|
#7 | |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21 |
Quote:
"timeActivatedFileUpdate. Performs a file copy/replacement once a specified time has been reached. Example usage to update the fvSolution dictionary at various times throughout the calculation:" Code:
fileUpdate1 { type timeActivatedFileUpdate; libs ("libutilityFunctionObjects.so"); writeControl timeStep; writeInterval 1; fileToUpdate "$FOAM_CASE/system/fvSolution"; timeVsFile ( (-1 "$FOAM_CASE/system/fvSolution.0") (0.10 "$FOAM_CASE/system/fvSolution.10") (0.20 "$FOAM_CASE/system/fvSolution.20") (0.35 "$FOAM_CASE/system/fvSolution.35") ); } |
||
February 28, 2017, 04:42 |
|
#8 |
Member
|
Not much but trying to leave fluent like proprietary software and trying to get full understanding of open source softwares, like OpenFOAM Sent from my iPhone using CFD Online Forum mobile app |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ImmersedBoundary] Immersed Boundary Method in OpenFOAM-3.1-ext | miladrakhsha | OpenFOAM Community Contributions | 106 | July 3, 2023 11:26 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |