CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   A problem about blockMeshDict (https://www.cfd-online.com/Forums/openfoam-pre-processing/251006-problem-about-blockmeshdict.html)

applekiller July 21, 2023 08:40

A problem about blockMeshDict
 
Hello, Foamers!

I have a problem about the function "project" in blockMeshDict file.
This blockMeshDict file is in a case about NACA0012(you can find it easily).

The code is

Code:

project ($aerofoil.xLower -0.1 $domain.zMin) (cylinder)  // 0      (0.3 -0.1 -2)

    project ($aerofoil.xLead  -0.1 $aerofoil.zLead) (aerofoil) // 4                (0  -0.1 0)
    project ($aerofoil.xTrail -0.1 $aerofoil.zTrail) (aerofoil)// 5                (1  -0.1 0)

My problem is following:

Is the function 'project' a mapping?

What the relationship between the points "($aerofoil.xLower -0.1 $domain.zMin)" and cylinder(cylinder is a geometry)?

How does the 'project' function work?

I welcome any answer, and I believe the more discussed the question, the clearer it becomes.

Lorenzo210 October 27, 2023 09:47

Hi,


I think "project" is projecting or mapping the vertex onto the surface indicated (cylinder or aerofoil), which has been loaded before.


It should be referring to the source file you can find in the following link:
https://www.openfoam.com/documentati...8H_source.html


Other useful files are located in:
FOAM_SRC/mesh/blockMesh


Regards,
Lorenzo


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