|
[Sponsors] |
April 23, 2019, 12:13 |
runTime.write and making directories
|
#1 |
New Member
Arne
Join Date: Dec 2018
Posts: 19
Rep Power: 8 |
Hi all
I am trying to let a solver make a new folder in the case. However, OpenFOAM does not know mkdir. How should this be done? Furthermore, I tried to find this in a solver since every solver creates new folders for new time steps. I think that the creation of a new folder either happens with runTime++ or with runTime.write. However, I cannot find the code of runTime.write. I found that runTime is defined in createTimes.H and that it is an object of the Time-class (FOAM::Time), but this class does not contain a function write? Thanks in advance Best regards Arne |
|
April 23, 2019, 16:54 |
|
#2 |
Senior Member
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 211
Rep Power: 17 |
yeah, inheritance can be a tricky sometimes ... your are write in that runTime is a Time object (within the Foam namespace) but it doesn't have the mwthod write defined itself. But, if inherits from objectRegistry which in turn inherits from regIOobject (which has a method write() defined), see also this post Can somebody please explain runTimewrite
|
|
April 23, 2019, 17:00 |
|
#3 |
Senior Member
|
||
Tags |
folder, runtime |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 8, 2024 00:17 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |