mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Tried to sort out the scripts in the tutorials but found it is messed up. Will start again from a new version from Mattijs
This commit is contained in:
@ -1,66 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class volScalarField;
|
||||
object phi;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
dimensions [1 2 -3 0 0 -1 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
left
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
down
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
up
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
hole
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 45000;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,65 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class volScalarField;
|
||||
object rho;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
dimensions [0 -3 1 0 0 1 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
left
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
down
|
||||
{
|
||||
type symmetryPlane;
|
||||
}
|
||||
|
||||
up
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
hole
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 3.57e-05;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,30 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object physicalProperties;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
epsilon0 epsilon0 [-1 -3 4 0 0 2 0] 8.85419e-12;
|
||||
|
||||
k k [-1 0 2 0 0 1 0] 0.00016;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,107 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 1;
|
||||
|
||||
vertices
|
||||
(
|
||||
(0.001 0 0)
|
||||
(0.038 0 0)
|
||||
(0.076 0 0)
|
||||
(0.076 0.02687 0)
|
||||
(0.02687 0.02687 0)
|
||||
(0.0007071 0.0007071 0)
|
||||
(0.076 0.114 0)
|
||||
(0.02687 0.114 0)
|
||||
(0 0.114 0)
|
||||
(0 0.038 0)
|
||||
(0 0.001 0)
|
||||
(0.001 0 0.5)
|
||||
(0.038 0 0.5)
|
||||
(0.076 0 0.5)
|
||||
(0.076 0.02687 0.5)
|
||||
(0.02687 0.02687 0.5)
|
||||
(0.0007071 0.0007071 0.5)
|
||||
(0.076 0.114 0.5)
|
||||
(0.02687 0.114 0.5)
|
||||
(0 0.114 0.5)
|
||||
(0 0.038 0.5)
|
||||
(0 0.001 0.5)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (5 4 9 10 16 15 20 21) (60 30 1) simpleGrading (5 1 1)
|
||||
hex (0 1 4 5 11 12 15 16) (60 30 1) simpleGrading (5 1 1)
|
||||
hex (1 2 3 4 12 13 14 15) (50 30 1) simpleGrading (1 1 1)
|
||||
hex (4 3 6 7 15 14 17 18) (50 50 1) simpleGrading (1 1 1)
|
||||
hex (9 4 7 8 20 15 18 19) (30 50 1) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
arc 0 5 (0.00092387 0.00038268 0)
|
||||
arc 5 10 (0.00038268 0.00092387 0)
|
||||
arc 1 4 (0.0351074 0.0145419 0)
|
||||
arc 4 9 (0.0145419 0.0351074 0)
|
||||
arc 11 16 (0.00092387 0.00038268 0.5)
|
||||
arc 16 21 (0.00038268 0.00092387 0.5)
|
||||
arc 12 15 (0.0351074 0.0145419 0.5)
|
||||
arc 15 20 (0.0145419 0.0351074 0.5)
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
symmetryPlane left
|
||||
(
|
||||
(8 9 20 19)
|
||||
(9 10 21 20)
|
||||
)
|
||||
symmetryPlane right
|
||||
(
|
||||
(2 3 14 13)
|
||||
(3 6 17 14)
|
||||
)
|
||||
symmetryPlane down
|
||||
(
|
||||
(0 1 12 11)
|
||||
(1 2 13 12)
|
||||
)
|
||||
patch up
|
||||
(
|
||||
(7 8 19 18)
|
||||
(6 7 18 17)
|
||||
)
|
||||
patch hole
|
||||
(
|
||||
(10 5 16 21)
|
||||
(5 0 11 16)
|
||||
)
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,75 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4.1 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "/home/dm2/henry/OpenFOAM/OpenFOAM-1.4.1/tutorials/electrostaticFoam";
|
||||
case "chargedWire";
|
||||
instance "constant";
|
||||
local "polyMesh";
|
||||
|
||||
class polyBoundaryMesh;
|
||||
object boundary;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
6
|
||||
(
|
||||
left
|
||||
{
|
||||
type symmetryPlane;
|
||||
physicalType symmetryPlane;
|
||||
nFaces 110;
|
||||
startFace 17980;
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type symmetryPlane;
|
||||
physicalType symmetryPlane;
|
||||
nFaces 80;
|
||||
startFace 18090;
|
||||
}
|
||||
|
||||
down
|
||||
{
|
||||
type symmetryPlane;
|
||||
physicalType symmetryPlane;
|
||||
nFaces 110;
|
||||
startFace 18170;
|
||||
}
|
||||
|
||||
up
|
||||
{
|
||||
type patch;
|
||||
physicalType insulator;
|
||||
nFaces 80;
|
||||
startFace 18280;
|
||||
}
|
||||
|
||||
hole
|
||||
{
|
||||
type patch;
|
||||
physicalType fixedCharge;
|
||||
nFaces 60;
|
||||
startFace 18360;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
nFaces 18200;
|
||||
startFace 18420;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,56 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application electrostaticFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 0.02;
|
||||
|
||||
deltaT 5e-05;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 100;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,64 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / 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 leastSquares;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(rhoFlux,rho) Gauss limitedLinear 1;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(phi) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
phi;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,42 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object fvSolution;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
phi PCG
|
||||
{
|
||||
preconditioner DIC;
|
||||
tolerance 1e-08;
|
||||
relTol 0.2;
|
||||
};
|
||||
rho PBiCG
|
||||
{
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.2;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user