CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: reza2031
Forum: OpenFOAM Programming & Development November 22, 2019, 12:28
Replies: 2
Views: 2,551
Posted By reza2031
Hi Hosein, Thank you for the life saving...

Hi Hosein,

Thank you for the life saving reply!
For future references, I used this in my code:

cp(mesh.time().path()/"originalCase", mesh.time().path()/"allCases"/"case1");


Reza
Forum: OpenFOAM Programming & Development November 21, 2019, 13:02
Replies: 2
Views: 2,551
Posted By reza2031
how to copy files or directories in a script using FOAM class

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:

cp -r directory1 directory2

But cp is not defined...
Showing results 1 to 2 of 2

 
Forum Jump

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