CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [cfMesh] Didn't generate any mesh, not sure what was wrong in case definition (https://www.cfd-online.com/Forums/openfoam-community-contributions/182364-didnt-generate-any-mesh-not-sure-what-wrong-case-definition.html)

Heraklion January 8, 2017 06:06

Didn't generate any mesh, not sure what was wrong in case definition
 
Hi Forum,

I'm new to the OpenFoam and I know that working with OpenFoam is a bit of habit, because it has no interface and that makes the thing very interesting for me and now the question regarding cfMesh:

Which is the first step to create a mesh.

I have made folgedes:

1- I have created a bearing surface called "profile" and a ring, called "outer", with CAD in "stl" - "ASCII" format. (profil.zip)

2- The two files were merged into one file and that was named "allCombined".

3- because it is a 2D simulation, is worked with cartesian2DMesh.

4- it was created a "dat" file, gennat "./Allrun" so that you do not always have to type the commands and the following:
___
Code:
#!/bin/sh
cd ${0%/*} | | exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=$(getApplication)

cp 0/U.org 0/U

##cfMesh##
cat profil.stl > allCombined.stl
cat outer.stl >> allCombined.stl
runApplication surfaceToFMS allCombined.stl
runApplication cartesian2DMesh
runApplication improveMeshQuality
#uncomment next line if scaling from mm to m is necessary
#runApplication transformPoints -noFunctionObjects -scale '(0.001 0.001 0.001)'
runApplication checkMesh -noTopology
##

##Solver##
runApplication potentialFoam
runApplication $application
____

Now when I do cheMesh, shows me the FATAL ERROR and no mesh present and although the following:
____
Code:
Create time
Create polyMesh for time = 0

--> FOAM FATAL ERROR:
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

From function Foam::word Foam::Time::findInstance(const Foam::fileName&, const Foam::word&, Foam::IOobject::readOption, const Foam::word&) const
in file db/Time/findInstance.C at line 202.

FOAM exiting
___

For cfMesh is a userguide, has been very roughly written and does not help unfortunately so much.

Would be nice if someone could help me and tell me what is the error and what is the first step. what did i wrong?:confused:

tnx:)

linnemann January 8, 2017 06:28

Zip case and upload to a sharing service and link here, can take a look

Heraklion January 8, 2017 06:43

i tried but the file is 975.3 kb. Hier is only 195.3 kb allowed

franjo_j January 11, 2017 18:02

No cells in the mesh
 
Hi,

Can you please post a picture of the domain and the log file of the cartesianMesh. I have tried to download the geometry (profil.zip), and my anti-virus did not let me because of malicious software.

In order to resolve your problem please pay attention to:
1. Proper geometry definition for 2D meshing. You can find it in the manual and there is also a tutorial called "hat", provided with the software. Check the "tutorials" folder of your cfMesh installation.
2. If your geometry is not a ribbon, the mesher is not able to detect any cells inside your domain that are not intersected by the domain itself. Check the keepCellsIntersectingBoundary option that over-rides the default behaviour.


All times are GMT -4. The time now is 23:00.