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

how to run .cvg in LINUX!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2024, 04:43
Smile how to run .cvg in LINUX!
  #1
New Member
 
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2
vikoel is on a distinguished road
Hey, my friends,

I need to run converge in a supercomputing environment, but I do not actually know what the command is in Linux for running a.cvg file, which is already well prepared in Windows.

I found a command like'mpirun -n 16 -ppn 4 converge-intelmp’ *from 'Getting Started Guide', but how do I make it run the.cvg file I specified?

Thanks for your help a lot!!!


I have found a example of script:
''
#!/bin/bash
#SBATCH -J mycase
#SBATCH -N 1
#SBATCH -t 10

chmod +x test.sh

export RLM_LICENSE=50532@login03
export CONVERGE_ROOT=/home/CONVERGE/Convergent_Science
export CONVERGE_PATH=$CONVERGE_ROOT/CONVERGE/3.0.17/bin


source /home/CONVERGE/Convergent_Science/Environment/scripts/CONVERGE/CONVERGE-IntelMPI/3.0.17.sh

mpirun $CONVERGE_PATH/converge-intelmpi
''
After running the '.sh' script, it says that permission was denied, like 'home/CONVERGE/Convergent Science/C0NVERGE/3.0.17/bin/mpi/INTEL/inte164/bin/mpirunermission denied'.

Last edited by vikoel; March 17, 2024 at 04:57.
vikoel is offline   Reply With Quote

Old   March 18, 2024, 12:41
Default
  #2
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Hello Ming,

First, you need to export the .cvg file into a directory so that the directory contains the *.in and *.dat files of the case setup. You will also need to have your converge executable in the same directory. You should also have the converge module loaded for your flavor of MPI. Then the command 'mpirun -n 16 -ppn 4 converge-intelmpi' should work.

If you're using the slurm script, make sure you also have in there module load cvg/3.*_mpich or whichever MPI you're using. And put the script in the same directory where your case is.

If you need help with the the slurm script, you should contact your HPC administrator as they have a better idea what can and cannot be done on your HPC.

Best,

Angela
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   March 19, 2024, 04:41
Default
  #3
New Member
 
Join Date: Dec 2023
Posts: 9
Rep Power: 3
Laurens is on a distinguished road
Hey, I really do not understand what is going on behind the scenes when working on a cluster, but nonetheless maybe I can help you!
What works best for me is exporting the .in files to a directory (in the same version as on the cluster) and copying the entire directory to the cluster. Then change to that directory on your SSH terminal and run the bash script with:
sbatch Converge_bash_example.bash

I'll also post my bash script below for you!
--
#!/usr/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks=128
#SBATCH --partition=<partition>
#SBATCH --error=slurm-%j.err
#SBATCH --output=slurm-%j.out
#SBATCH --time=168:00:00

module --ignore_cache load openmpi

source /cm/shared/apps/ConvergentScience/Convergent_Science/Environment/scripts/CONVERGE/CONVERGE-MPICH/3.0.21.sh
mpirun -np 128 converge-mpich super
--
Laurens is offline   Reply With Quote

Old   April 21, 2024, 06:23
Default
  #4
New Member
 
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2
vikoel is on a distinguished road
Quote:
Originally Posted by angela.wu View Post
Hello Ming,

First, you need to export the .cvg file into a directory so that the directory contains the *.in and *.dat files of the case setup. You will also need to have your converge executable in the same directory. You should also have the converge module loaded for your flavor of MPI. Then the command 'mpirun -n 16 -ppn 4 converge-intelmpi' should work.

If you're using the slurm script, make sure you also have in there module load cvg/3.*_mpich or whichever MPI you're using. And put the script in the same directory where your case is.

If you need help with the the slurm script, you should contact your HPC administrator as they have a better idea what can and cannot be done on your HPC.

Best,

Angela
Thanks for replying. Case works well with your advises by script demand!
vikoel is offline   Reply With Quote

Old   April 21, 2024, 06:33
Default
  #5
New Member
 
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2
vikoel is on a distinguished road
Thank you, Laurens.

Your own bash script means a lot for me!

I have written down the command line for my script, and everything is running successfully.
vikoel is offline   Reply With Quote

Reply

Tags
command, linux


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
OpenFOAM benchmarks on various hardware eric Hardware 823 Today 08:30
sloshingTank3D6DoF failed to run in parallel phsieh2005 OpenFOAM Running, Solving & CFD 1 May 19, 2023 00:51
Ansys fluent parallel run Linux error bineet_aero FLUENT 1 November 22, 2019 07:47
Bath run with a macro (linux) Hqjen STAR-CCM+ 4 May 20, 2016 13:01
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 20:00


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