Skip to content
Snippets Groups Projects
### This code is based on construct2d (https://sourceforge.net/projects/construct2d/).
### It includes the possibility to generate fully structured O-topology grids around airfoils 
### with blunt trailing edges. 
### It is extended by Fraunhofer IWES in order to export the meshes to OpenFOAM as a blockMeshDict and
### to fulfill the requirement of a real blunt trailing edge.


1) Compile the codes with the following command:
     make -f Makefile_Linux
   or
     make -f Makefile_Windows

2) The binaries/executables are then in bin/x86_64/

3) The code can be tested with the airfoils in the tutorials folders.
   Use the extecutable and the input files (e.g. ~/c2d-ext/bin/x86_64/Linux/c2d_ext < input).
   The cases typically contain a folder with a sharp blunt trailing edge (FLAT) and a rounded trailing edge (SMTH).

Caveats:
Depending on the system architecture it may be necessary to include some minor changes to the Makefiles_Windows. 
This refers in particular to the line OBJ=, where the order of the surface_grid*.o files should be changed to not encounter compiler errors.
The available versions for the binary file have been tested on:
- Ubuntu 16.04 LTS + GFortran
- Windows 7 + MinGW GFortran

Documentation:
See the PDF file 20181024_DanEli_Changes.pdf under the doc folder and the pre-existing baseline Construct2d documentation.