|
[Sponsors] |
how to copy files or directories in a script using FOAM class |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 21, 2019, 14:02 |
how to copy files or directories in a script using FOAM class
|
#1 |
New Member
|
Hello,
I am modifying a solver in OpenFOAM and need to write a line to copy a directory. In Linux command line, it is easy and you can use: Code:
cp -r directory1 directory2 Thank you, Reza |
|
November 22, 2019, 05:22 |
|
#2 |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15 |
||
November 22, 2019, 13:28 |
|
#3 | |
New Member
|
Quote:
Thank you for the life saving reply! For future references, I used this in my code: Code:
cp(mesh.time().path()/"originalCase", mesh.time().path()/"allCases"/"case1"); |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam cannot open include file | Marija | OpenFOAM Running, Solving & CFD | 1 | October 28, 2020 11:35 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |