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

[OpenFOAM.org] HPC setup error

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By mr35diamonds
  • 1 Post By mr35diamonds

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2022, 11:47
Default HPC setup error
  #1
New Member
 
Join Date: Jul 2022
Posts: 14
Rep Power: 4
Pamela93 is on a distinguished road
Good afternoon,

These days I have been facing an error during the installation of OpenFOAM in HPC. I had followed the instructions provided for my university; however, I have not been able to set up a case. The first was the creation of a workspace, which I did, and the second is the project setup. The code is the following ,and I am attaching the error as a picture Error message.jpg. If someone could help me I will be grateful.


#!/bin/bash

#SBATCH --time=72:00:00 # walltime
#SBATCH --ntasks=39 # number of processor cores (i.e. tasks)
#SBATCH --partition=haswell
#SBATCH --mem-per-cpu=2000M # memory per CPU core
#SBATCH -J "Test" # job name
#SBATCH -A p_test # project name
#SBATCH --mail-user=paca797c@tu-dresden.de # email address
#SBATCH --mail-type=ALL

OUTFILE="Output_Test"

module load OpenFOAM/8
source $FOAM_BASH
srun interFoam -parallel > "$OUTFILE"

exit 0
Pamela93 is offline   Reply With Quote

Old   July 26, 2022, 23:34
Default
  #2
New Member
 
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4
mr35diamonds is on a distinguished road
The first error message seems to be "attempt to run parallel on one processor". You have specified -parallel but did not write $NCORES.

The command should look something like this

srun -n $NCORES interFoam -parallel >& my_output_file
Pamela93 likes this.
mr35diamonds is offline   Reply With Quote

Old   July 27, 2022, 12:47
Default
  #3
New Member
 
Join Date: Jul 2022
Posts: 14
Rep Power: 4
Pamela93 is on a distinguished road
Thank you, Justin,

I successfully solved it, however, I have a different error, I checked the folder constant/polyMesh and the file "points" is there, then I do not know what could be the problem. The folder organization in my laptop using Ubuntu 20.04 works perfectly but running the model again in the HPC I am facing some errors. I am pretty new to Open FOAM, and I feel my errors are easy to solve, but I could not manage them properly.

[25] --> FOAM FATAL ERROR:
[25] Cannot find file "points" in directory "polyMesh" in times "0" down to constant
[25]
[25] From function virtual Foam::IOobject Foam::fileOperation::findInstance(const Foam::IOobject&, Foam::scalar, const Foam::word&) const
[25] in file global/fileOperations/fileOperation/fileOperation.C at line 871.
[25]
FOAM parallel run exiting


Thank you for your help!!

Kind Regards,
Pamela
Pamela93 is offline   Reply With Quote

Old   July 27, 2022, 23:08
Default
  #4
New Member
 
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4
mr35diamonds is on a distinguished road
This usually means your BlockMesh was not ran correctly.
Try to run BlockMesh, then CheckMesh -allTopology

and then see what the error is. I suggest to run your job interactively first to troubleshoot initial problems, rather than using a batch script right away.
Pamela93 likes this.
mr35diamonds is offline   Reply With Quote

Old   July 28, 2022, 12:14
Default
  #5
New Member
 
Join Date: Jul 2022
Posts: 14
Rep Power: 4
Pamela93 is on a distinguished road
Thank you, I will run it again. Thanks a lot!
Pamela93 is offline   Reply With Quote

Old   August 3, 2022, 14:18
Default
  #6
New Member
 
Join Date: Jul 2022
Posts: 14
Rep Power: 4
Pamela93 is on a distinguished road
Good afternoon,

I am writing to get some recommendations. I have to create a surface from a river channel and its respectively Mesh in HPC, for this aim I am using block Mesh, surfaceFeatureExtract, and snappyHexMesh. However, I have been facing some complications, at the beginning, I ran the model on my computer with a coarse Mesh with the commands mentioned before, and later I used interFOAM to process the boundary conditions, and everything worked. For my project, I need to refine the surface, which means I need to use HPC. I created the batch file that I am attaching here, but I got errors.

- The first error is this one:
"slurmstepd: error: execve(): surfaceFeatureExtract: No such file or directory"
run: error: taurusi6529: tasks 90-99: Exited with exit code 2

-The second error is this other:
"urmstepd: error: Detected 1 oom-kill event(s) in StepId=27549201.0 cgroup. Some of your processes may have been killed by the cgroup out-of-memory handler.
srun: error: taurusi6305: task 11: Out Of Memory
slurmstepd: error: Detected 1 oom-kill event(s) in StepId=27549201.0 cgroup. Some of your processes may have been killed by the group out-of-memory handler."

After all, I checked my folders and even with those errors the "Coarse Mesh" is in the folder results.

I would like to know, maybe my batch file is not well developed or why is the reason of the errors and furthermore do these errors affect the outcome of my Mesh?

I appreciate your help!
Attached Images
File Type: jpg error3.jpg (159.4 KB, 7 views)
File Type: jpg error3.2.jpg (159.9 KB, 4 views)
Attached Files
File Type: txt error3.txt (15.0 KB, 0 views)
File Type: txt batchfile_blockMesh.txt (706 Bytes, 0 views)
Pamela93 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
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 14:46
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 05:53
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


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