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

How do you use an Allrun script command?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2021, 01:36
Default How do you use an Allrun script command?
  #1
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6
Kendawgg22 is on a distinguished road
Does anyone know the correct way to type these command lines? What am I missing here? It successfully creates the new directory. But when I get to run Allrun script: it gives me an error saying too many arguments and ./Allrun just says no such file or directory. I attached the image file to this message.



mkdir newTest && cd newTest && cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder .



source ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions && canCompile


run Allrun script:


./Allrun
Attached Images
File Type: jpg Screenshot (10).jpg (40.1 KB, 49 views)
Kendawgg22 is offline   Reply With Quote

Old   March 2, 2021, 03:02
Default
  #2
New Member
 
Evren Yilmaz Yakin
Join Date: Feb 2016
Location: Ankara, Turkey
Posts: 27
Rep Power: 10
evrenykn is on a distinguished road
Hi Kendawgg22,

Can you control for Allrun file in your newTest folder? If you don't have a Allrun file in your folder you can't start the script. Normally, you can start it with ./Allrun
__________________
Best Regards,

Evren
evrenykn is offline   Reply With Quote

Old   March 2, 2021, 16:29
Default
  #3
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
`run Allrun script:` statement is not a command chain. It is just a comment which cannot be executed by the shell.

Also, evrenykn is right: Make sure that you have the `Allrun` script inside `newTest` directory.
HPE is offline   Reply With Quote

Old   March 4, 2021, 02:32
Default
  #4
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6
Kendawgg22 is on a distinguished road
I'm not sure. I'm not a linux user. lots of these things are still foreign to me. I was given these instructions because I was trying to diagnose why OpenFOAM version 2012 won't generate blockMesh for tutorial 2.2. But version 1912 did. How can I put a Allrun file into the newtest directory?
Kendawgg22 is offline   Reply With Quote

Old   March 4, 2021, 07:17
Default
  #5
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 747
Rep Power: 14
Tobermory will become famous soon enough
I strongly advise googling some basic Linux skills before trying to continue. Otherwise you are going to find life extremely difficult, and will work inefficiently.

The good news is that Linux is very easy to learn and there is plenty of content out there to help you ... not really the purpose of this forum though. Good luck!
Tobermory is offline   Reply With Quote

Reply


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
Two phase flow in porous medium Milaad OpenFOAM 7 July 1, 2024 06:08
[DesignModeler] Creating spheres spheres using the command in a Script SanchoBuendia ANSYS Meshing & Geometry 3 February 15, 2017 14:26
command to plot a sphere in Script DesignModeler SanchoBuendia FLUENT 1 February 15, 2017 14:20
[ICEM] Building topology command script files Anorky ANSYS Meshing & Geometry 8 January 11, 2010 08:25
Problems of running the parallel computations lorraine FLUENT 17 July 6, 2007 09:08


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