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

Running parallel calculation with AMI patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2022, 01:53
Default Running parallel calculation with AMI patch
  #1
New Member
 
Dmitry
Join Date: Sep 2018
Posts: 12
Rep Power: 7
KAYANO is on a distinguished road
Hello everyone!

There was a problem, I can not create a script to run a parallel calculation.


I have a script that launches a solver for parallel calculation, it works fine.

I want to make a script that allows you to run a parallel calculation with the mesh builder.


Here is an example of a script that is currently running.

Code:
#!/bin/bash

procs=8

foamCleanTutorials
rm -rf 0 > /dev/null 2>&1
#cp -r 0_org 0 > /dev/null 2>&1

blockMesh | tee log.blockMesh

snappyHexMesh -overwrite | tee log.shm

createBaffles -overwrite | tee log.createBaffles

mergeOrSplitBaffles -split -overwrite | tee log.mergeOrsplite

renumberMesh -overwrite | tee log.renumberMesh

cp -r 0.orig 0

decomposePar | tee log.decomposePar

mpirun -np $procs pimpleFoam -parallel | tee log.pimpleFoam

touch open.foam
KAYANO 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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 457 March 27, 2024 00:59
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 16:38
mapField error rvl565 OpenFOAM Pre-Processing 1 September 6, 2018 16:13
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
cyclicAMI crashes in parallel when processor has faces for only on AMI patch AndreasG OpenFOAM Running, Solving & CFD 1 April 9, 2014 09:37


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