CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

runTime.write and making directories

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2019, 11:13
Question runTime.write and making directories
New Member
Join Date: Dec 2018
Posts: 19
Rep Power: 6
arsimons is on a distinguished road
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
arsimons is offline   Reply With Quote

Old   April 23, 2019, 15:54
Senior Member
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 202
Rep Power: 15
t.teschner is on a distinguished road
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
t.teschner is offline   Reply With Quote

Old   April 23, 2019, 16:00
Senior Member
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 37
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym

OpenFOAM is quite capable of mkdir -
alexeym is offline   Reply With Quote


folder, runtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 39 July 1, 2020 09:13
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

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