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

[OpenFOAM.com] 3.0+ on Windows ---- How do I run tutorials?

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

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2017, 07:58
Default
  #21
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 133
Rep Power: 6
pgh is on a distinguished road
Well i have not use this one but it should be pretty same . Better copy your tutorial in /mtn/c/users/lenzo assuming your user name is lenzo and then run it . You can browse this location directly from windows browser as well
pgh is offline   Reply With Quote

Old   September 14, 2017, 11:02
Default
  #22
Member
 
Lenzo
Join Date: Feb 2014
Posts: 33
Rep Power: 8
lenzo is on a distinguished road
Dear pgh,

are you sure it works in that way? I think that the most probably way to connect the virtual machine and my computer should be through a special program. But still i can't figure out which one is.

Anyone has any other suggestion?
lenzo is offline   Reply With Quote

Old   November 14, 2017, 13:30
Default
  #23
Member
 
Ed O'Malley
Join Date: Nov 2017
Posts: 30
Rep Power: 4
edomalley1 is on a distinguished road
Quote:
Originally Posted by pgh View Post
Hi
This path "/opt/OpenFOAM/OpenFOAM-v1606+/tutorials" can only be accessed via
command line from shell of container . If you want to locate in your c drive , you need
to copy this in your c drive .
Do following from your container's bash shell
cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
It will copy the cavity tutorial inside c\user\francis . assuming francis is your
user name
Edit - nevermind - I figured it out.

Thanks - this worked for me. Stupid question - after I modify the files and save them back on my c drive, how do I copy them back into the workingDir? Thanks!
lenzo likes this.

Last edited by edomalley1; November 14, 2017 at 13:57. Reason: answered my own question.
edomalley1 is offline   Reply With Quote

Old   January 15, 2018, 04:33
Default
  #24
Member
 
Lenzo
Join Date: Feb 2014
Posts: 33
Rep Power: 8
lenzo is on a distinguished road
Hello,

Any idea how to copy a new case into the workingDir of openfoam in WINDOWS?

Because I work in an ubuntu, but sometimes in a windows. So, how Can i copy the changes into the workingDir of windows?

Thank you!

Quote:
Originally Posted by lenzo View Post
Dear pgh,

are you sure it works in that way? I think that the most probably way to connect the virtual machine and my computer should be through a special program. But still i can't figure out which one is.

Anyone has any other suggestion?
lenzo is offline   Reply With Quote

Old   January 15, 2018, 05:22
Default
  #25
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 590
Rep Power: 9
piu58 is on a distinguished road
The working directory is

c:\OpenFoam\16.10\<username>\run from windows

/cygdrive/c/OpenFoam/16.10/<username>/run form the shell
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   October 22, 2018, 10:52
Default
  #26
New Member
 
Klaas Albers
Join Date: Oct 2018
Posts: 1
Rep Power: 0
Mr.Tea is on a distinguished road
I have the same Problem with the Tutorial files.

cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity
blockMesh
icoFoam

When i try this command only the first one works. When i try the second one it displays this message:

cp: missing destination file operand after '/opt/OpenFOAM/OpenFOAM-v1806/tutorials/incompressible/icoFoam/cavity/cavity'
Try 'cp --help' for more information.
[ofuser@default workingDir]$

I hope you guys can help me.

Kind Regards, Klaas
Mr.Tea is offline   Reply With Quote

Old   October 24, 2018, 18:50
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 45
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: If it states:
Code:
cp: missing destination file operand after ...
it means that you missed the final dot in the command that you indicated:
Code:
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity . 
It's cavity space dot at the end of the command
__________________
wyldckat is offline   Reply With Quote

Reply

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
How to run other tutorials included in OpenFOAM? BhaluBear OpenFOAM Running, Solving & CFD 8 May 21, 2016 11:19
How to run the tutorials' problems? ranasa OpenFOAM Running, Solving & CFD 2 July 24, 2014 16:10
How to run su2 on windows and use multicore hedley SU2 1 June 24, 2014 21:44
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
Help, can't stop solver run...Windows OS ben akih CFX 2 November 13, 2006 11:05


All times are GMT -4. The time now is 23:55.