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

PotentialFoam use with a snappyhexmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2021, 11:29
Default PotentialFoam use with a snappyhexmesh
  #1
New Member
 
Join Date: Nov 2017
Posts: 1
Rep Power: 0
stachstach is on a distinguished road
hello,


I am trying to run potentialFoam on a mesh I generated using snappyHexMesh.
My problem is that when i run this:

Code:
#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
#------------------------------------------------------------------------------

canCompile || exit 0    # Dynamic code
mkdir -p constant/triSurface
#copy DTC hull surface from resources folder
cp -f /mnt/c/Users/blu/Desktop/MESH_2.stl constant/triSurface/
runApplication surfaceFeatureExtract
runApplication blockMesh
for i in 1 2 
do
    runApplication -s $i \
        topoSet -dict system/topoSetDict.${i}

    runApplication -s $i \
        refineMesh -dict system/refineMeshDict -overwrite
done
runApplication decomposePar
runApplication foamJob -p -s snappyHexMesh
#runApplication snappyHexMesh -overwrite -parallel
runApplication reconstructParMesh -mergeTol 1e-06 -latestTime
restore0Dir
and preview the mesh in paraview everything is ok, but on running this:
Code:
runApplication potentialFoam
immediately after, potentialFoam seems to create the mesh anew, and it does not have my feature extracted from the .stl file. It appears potentialfoam is only running blockMesh and refinements, but does not run snappyHexMesh.


Is there a way to make potentialFoam use the mesh generated in previous steps?


thanks!
stachstach 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
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 02:54
OpenFOAM v4.1 - farfield bc potentialFoam jeytsav OpenFOAM Running, Solving & CFD 0 November 23, 2016 09:06
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. jasv OpenFOAM Meshing & Mesh Conversion 4 May 10, 2016 02:55
potentialFoam & simpleFoam crashes after snappyhexmesh [parallel execution] pilot320 OpenFOAM Running, Solving & CFD 10 November 12, 2015 16:56
potentialFoam doesnt start?! Sway OpenFOAM Running, Solving & CFD 0 July 2, 2015 07:48


All times are GMT -4. The time now is 14:20.