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

Run a simulation from Windows 10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2019, 12:01
Default Run a simulation from Windows 10
  #1
New Member
 
Chiara
Join Date: Oct 2012
Posts: 11
Rep Power: 14
Chia is on a distinguished road
Dear All,


for a project I am currently working on, I would need to start a simulation in OF from Windows 10.
I installed OF using Ubuntu for Windows 10, following this link https://www.youtube.com/watch?v=xj0dB_PsElg. OF is running without problems when I start simulations from the Ubuntu terminal, but I would need to be able to start a simulation from the cmd.exe terminal, i.e. using something like
Code:
bash -c "blockMesh"
If I just type the code above I get the error
Code:
/bin/bash: blockMesh: command not found
Does anybody know if this is possible at all? If yes, do you know the right commands?

Cheers,
Chiara
Chia is offline   Reply With Quote

Old   September 26, 2019, 12:07
Default
  #2
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7
CFD_10 is on a distinguished road
Try the following
Code:
bash -c "source /path/to/OpenFOAM/etc/bashrc; blockMesh"
For example if OpenFOAM is installed on /opt/openfoam6 then, the command above becomes:
Code:
bash -c "source /opt/openfoam6/etc/bashrc; blockMesh"
CFD_10 is offline   Reply With Quote

Old   September 27, 2019, 06:55
Default
  #3
New Member
 
Chiara
Join Date: Oct 2012
Posts: 11
Rep Power: 14
Chia is on a distinguished road
It worked! Thanks a lot!
I could even run the Allrun scripts in this way, that is exactly what I needed :-)
Chia is offline   Reply With Quote

Reply

Tags
windows 10


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 a wind turbine blade simulation gerritgroot SU2 6 February 8, 2019 15:44
Fluent Simulation time windows 7 64 natantyt FLUENT 1 December 13, 2011 17:35
I need comments from my 1st run simulation...plz fadly CFX 8 October 8, 2007 06:04
How to run a parallel simulation? J.Gimbun FLUENT 9 May 24, 2006 06:47
Procedure to run unsteady simulation? STN Main CFD Forum 2 February 16, 2002 05:37


All times are GMT -4. The time now is 14:56.