CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

runTime.write and making directories

Register Blogs Community New Posts Updated Threads Search

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

Old   April 23, 2019, 16:54
Default
  #2
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 211
Rep Power: 17
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, 17:00
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

OpenFOAM is quite capable of mkdir - https://cpp.openfoam.org/v6/classFoa...f345e6fbbec954.
alexeym is offline   Reply With Quote

Reply

Tags
folder, runtime


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
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


All times are GMT -4. The time now is 02:44.