Commit de4aff85 authored by Franjo's avatar Franjo
Browse files

Merge branch 'task-updateTutorials' into development

parents d6faa68b 94389a18
# -*- mode: org; -*-
#
#+TITLE: *cfMesh README for version 1.0*
#+AUTHOR: Franjo Juretic.
#+DATE: May 2014
#+LINK: http://www.c-fields.com
#+OPTIONS:
cfMesh is a library for mesh generation built on OpenFOAM.
* License
cfMesh is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
* System requirements
cfMesh is developed and tested on Linux and MS Windows.
* Installation
The binaries can be downloaded from www.c-fields.com
* Building from Sources (Optional)
cfMesh can be built with recent versions of OpenFOAM and foam-extend. In order to build the library, a working OpenFOAM environment is needed. The build started by the Allwmake script located in this folder. It can be built with gcc and mingw compilers which support OpenMP (gcc-4.2.4 and above). Other compilers are not tested.
* Getting Started
Copy the 'tutorials' examples directory in the cfMesh distribution to the
'run' directory. If the OpenFOAM environment variables are set correctly,
then the following command will work correctly:
+ cp -r tutorials $FOAM_RUN
Run the first example case of a simplified car body:
+ cd $FOAM_RUN/tutorials/asmoOctree
+ cartesianMesh
* Documentation
http://www.c-fields.com
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object controlDict;
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoFoam;
application ;
startFrom latestTime;
......
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss limitedLinearV 1;
}
laplacianSchemes
{
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian(1|A(U),p) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************************************* //
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p ICCG 1e-06 0;
U BICCG 1e-05 0;
}
PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 2;
}
// ************************************************************************* //
// The FOAM Project // File: adaptiveProperties
/*
-------------------------------------------------------------------------------
========= | dictionary
\\ / |
\\ / | Name: adaptiveProperties
\\ / | Family: Data file
\\/ |
F ield | FOAM version: 1.9.6
O peration | Product of Nabla Ltd.
A and |
M anipulation | Email: Enquiries@Nabla.co.uk
-------------------------------------------------------------------------------
*/
version 0.5;
format ascii;
root "/home/larson/franjo/foam/run";
case "thetaTest";
instance "system";
local "";
note "fvSchemes for Foam";
class dictionary;
object adaptiveProperties;
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -34,53 +23,111 @@ maxCellSize 40;
boundaryCellSize 10;
patchCellSize
19
(
minCellSize 1.25;
localRefinement
{
// outer rim
patch0 5
patch0
{
cellSize 5;
}
// blade seat edge
patch5 1.25
patch5
{
cellSize 1.25;
}
// shaft
patch6 10
patch6
{
cellSize 10;
}
// thin edges at blade ends
patch37 0.625
patch55 0.625
patch72 0.625
patch89 0.625
patch86 0.625
patch114 0.625
patch138 0.625
patch157 0.625
patch37
{
cellSize 0.625;
}
patch55
{
cellSize 0.625;
}
patch72
{
cellSize 0.625;
}
patch89
{
cellSize 0.625;
}
patch86
{
cellSize 0.625;
}
patch114
{
cellSize 0.625;
}
patch138
{
cellSize 0.625;
}
patch157
{
cellSize 0.625;
}
// blades
patch8 5
patch11 5
patch12 5
patch16 5
patch19 5
patch24 5
patch27 5
patch30 5
);
subsetFileName "Fan1.sftr";
subsetCellSize
1
(
_refine_1 2.5
patch8
{
cellSize 5;
}
patch11
{
cellSize 5;
}
patch12
{
cellSize 5;
}
patch16
{
cellSize 5;
}
patch19
{
cellSize 5;
}
patch24
{
cellSize 5;
}
patch27
{
cellSize 5;
}
patch30
{
cellSize 5;
}
);
keepCellsIntersectingPatches
3
(
{
patch0
{
keepCells 1;
}
patch1
{
keepCells 1;
}
patch2
);
{
keepCells 1;
}
}
keepCellsIntersectingBoundary 1;
checkForGluedMesh 1;
......
Please run cartesianMesh to generate the mesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
// FoamX Case Dictionary.
FoamFile
{
version 2.0;
format ascii;
root "/home/franjo/OpenFOAM/franjo-1.0/run";
case "asmo2";
instance "system";
local "";
class dictionary;
object controlDict;
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Foam Application Class
applicationClass simpleFoam;
applicationClass ;
// Start point of run
startFrom latestTime;
......
// The FOAM Project // File: adaptiveProperties
/*
-------------------------------------------------------------------------------
========= | dictionary
\\ / |
\\ / | Name: adaptiveProperties
\\ / | Family: Data file
\\/ |
F ield | FOAM version: 1.9.6
O peration | Product of Nabla Ltd.
A and |
M anipulation | Email: Enquiries@Nabla.co.uk
-------------------------------------------------------------------------------
*/
version 0.5;
format ascii;
root "/home/larson/franjo/foam/run";
case "thetaTest";
instance "system";
local "";
note "fvSchemes for Foam";
class dictionary;
object adaptiveProperties;
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -36,23 +25,20 @@ boundaryCellSize 0.025;
minCellSize 0.0125;
patchCellSize
3
(
defaultFaces0006 0.005
defaultFaces0007 0.0025
defaultFaces0009 0.0025
);
/*
keepCellsIntersectingPatches
3
(
defaultFaces0006
defaultFaces0007
defaultFaces0009
);
*/
internalVertex (1.5 -0.4 0.8);
localRefinement
{
defaultFaces0006
{
cellSize 0.005;
}
defaultFaces0007
{
cellSize 0.0025;
}
defaultFaces0009
{
cellSize 0.0025;
}
}
// ************************************************************************* //
This tutorials demonstrates the usage of primitive refinement sources
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object controlDict;
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoFoam;
application ;
startFrom latestTime;
......
// The FOAM Project // File: adaptiveProperties
/*
-------------------------------------------------------------------------------
========= | dictionary
\\ / |
\\ / | Name: adaptiveProperties
\\ / | Family: Data file
\\/ |
F ield | FOAM version: 1.9.6
O peration | Product of Nabla Ltd.
A and |
M anipulation | Email: Enquiries@Nabla.co.uk
-------------------------------------------------------------------------------
*/
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/
version 0.5;
format ascii;
root "/home/larson/franjo/foam/run";
case "thetaTest";
instance "system";
local "";
note "fvSchemes for Foam";
class dictionary;
object adaptiveProperties;
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -35,49 +24,48 @@ maxCellSize 30.0;
boundaryCellSize 7.5;
objectRefinements
5
(
ear1
{
cellSize 3.75;
type cone;
p0 (-100 1873 -320);
radius0 200;
p1 (-560 1400 0);
radius1 200;
}
ear2
{
cellSize 3.75;
type cone;
p0 (-650 1873 -620);
radius0 200;
p1 (-670 1300 0);
radius1 200;
}