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

[SOWFA] NREL SOWFA Tutorial case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2016, 11:35
Unhappy NREL SOWFA Tutorial case
  #1
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14
mohsen.boojari is on a distinguished road
hi everyone,
I'm trying to run a test case in SOWFA package named (NREL5MWRef.uniformFlow)
but when i used the runscript of this case to start the simulation i got these errors:
Code:
cp: cannot stat `0.original': No such file or directory
cp: cannot stat `system/controlDict.1': No such file or directory
Running blockMesh
cp: cannot stat `constant/polyMesh/blockMeshDict': No such file or directory
mv: cannot stat `./blockMeshDict': No such file or directory
Also these ones:
Code:
--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/mohsen/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.
All of the above mentioned files exist in the case File but i don't know why I'm seeing this.
I have attached the Script . please take a look at it .
thanks
Code:
#!/bin/bash
#PBS -l walltime=72:00:00
#PBS -l nodes=40
#PBS -A windFlowModeling
#PBS -W x="FLAGS:ADVRES:SOWFA.10113"

source $HOME/.bash_profile
OpenFOAM-2.0.x-gcc-impi
module list

cd $PBS_O_WORKDIR
nodes=40                             # Number of nodes
cores=24                             # Number MPI processes to start on each node; 8 cores/node



solver=pisoFoamTurbine


refineMeshLocal()
{
   i=$1
   while [ $i -gt 0 ]
   do
      echo "Performing level $i local refinement"
      echo "   selecting cells to refine..."
      cp system/topoSetDict.local.$i system/topoSetDict
      topoSet > log.topoSet.local.$i 2>&1

      echo "   refining cells..."
      cp system/refineMeshDict.local system/refineMeshDict
      refineMesh -dict -overwrite > log.refineMesh.local.$i 2>&1

      let i=i-1
   done
}


refineMeshGlobal()
{
   i=1
   while [ $i -le $1 ]
   do
      echo "Performing level $i global refinement"
      echo "   refining cells..."
      mpirun -np $(($nodes*$cores)) refineMesh -parallel -overwrite > log.refineMesh.global.$i 2>&1

      let i=i+1
   done
}


echo "Starting OpenFOAM job at: " $(date)
echo "using " $(($nodes*$cores)) " processors"

# Get a clean version of the intial fields
rm -rf 0
cp -rf 0.original 0

# Copy the proper controlDict into place

cp system/controlDict.1 system/controlDict

# Make the background coarse mesh using blockMesh (serial)
echo "Running blockMesh"
cp constant/polyMesh/blockMeshDict ./
rm -rf constant/polyMesh/*
mv ./blockMeshDict constant/polyMesh
blockMesh > log.blockMesh 2>&1

# Perform local refinement (serial)
refineMeshLocal 3

# Decompose the mesh and solution files (serial)
echo "Running decomposePar"
cp system/decomposeParDict.$(($nodes*$cores)) system/decomposeParDict
decomposePar -cellDist -force > log.decomposePar

# Perform global refinement to desired resolution (parallel)
refineMeshGlobal 1

# Check the mesh.
mpirun -np $(($nodes*$cores)) checkMesh -parallel > log.checkMesh 2>&1

# Run the solver (parallel)
mpirun -np $(($nodes*$cores)) $solver -parallel > log.1.$solver 2>&1

echo "Ending OpenFOAM job at: " $(date)
mohsen.boojari is offline   Reply With Quote

Reply

Tags
scripts


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
HronTurekFsi tutorial case using icoFsiElasticNonLinULSolidFoam MarcelK OpenFOAM Running, Solving & CFD 9 February 25, 2019 03:25
MapFields doesnt work in the "counterFlowFlame2D" tutorial case panachristos OpenFOAM Running, Solving & CFD 9 August 26, 2018 22:27
[waves2Foam] Problem running waves2Foam "waveFlume" tutorial case k.nomi OpenFOAM Community Contributions 6 April 8, 2016 10:56
error in biconic25-55run35 tutorial case immortality OpenFOAM Running, Solving & CFD 5 June 16, 2013 12:03
SRFSimpleFoam tutorial case blows up on laptop (but runs on desktop?) AHMeng OpenFOAM Running, Solving & CFD 1 April 27, 2012 09:34


All times are GMT -4. The time now is 02:30.