Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop

This commit is contained in:
sergio
2016-09-28 09:06:35 -07:00
833 changed files with 19702 additions and 4862 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
if [ -f "$FFTW_ARCH_PATH/include/fftw3.h" ] || \
[ "${FFTW_ARCH_PATH##*-}" = system -a -f "/usr/include/fftw3.h" ]
then
wmake
else
echo
echo "Skipping dnsFoam solver (no FFTW)"
echo
fi
#------------------------------------------------------------------------------

View File

@ -41,7 +41,6 @@
p_rghDDtEqn =
(
fvc::ddt(rho) + psi*correction(fvm::ddt(p_rgh))
+ fvc::div(phiHbyA)
==
fvOptions(psi, p_rgh, rho.name())
);
@ -52,6 +51,7 @@
fvScalarMatrix p_rghEqn
(
p_rghDDtEqn()
+ fvc::div(phiHbyA)
- fvm::laplacian(rhorAUf, p_rgh)
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License

View File

@ -1,3 +1,3 @@
Test-namedEnum.C
Test-NamedEnum.C
EXE = $(FOAM_USER_APPBIN)/Test-NamedEnum

View File

@ -0,0 +1,114 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
\*---------------------------------------------------------------------------*/
#include "NamedEnum.H"
#include "IOstreams.H"
using namespace Foam;
class namedEnumTest
{
public:
enum option
{
a,
b,
c,
d
};
static const Foam::NamedEnum<option, 4> namedEnum;
};
template<>
const char* Foam::NamedEnum<namedEnumTest::option, 4>::names[] =
{
"a",
"b",
"c",
"d"
};
const Foam::NamedEnum<namedEnumTest::option, 4> namedEnumTest::namedEnum;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:
int main(int argc, char *argv[])
{
const List<namedEnumTest::option> options
= namedEnumTest::namedEnum.enums();
Info<< "enums: " << options << nl;
Info<< "loop over enums (as list):" << nl;
forAll(options, i)
{
const namedEnumTest::option& opt = options[i];
Info<< "option[" << opt
<< "] = '" << namedEnumTest::namedEnum[opt] << "'" << nl;
}
#if __cplusplus > 201100L
// C++11
Info<< "loop over enums (C++11 for range):" << nl;
for (auto const& opt : options)
{
Info<< "option[" << opt
<< "] = '" << namedEnumTest::namedEnum[opt] << "'" << nl;
}
#else
Info<< "loop over enums (via iterator):" << nl;
forAllConstIter(List<namedEnumTest::option>, options, iter)
{
const namedEnumTest::option& opt = *iter;
Info<< "option[" << opt
<< "] = '" << namedEnumTest::namedEnum[opt] << "'" << nl;
}
#endif
Info<< nl
<< namedEnumTest::namedEnum["a"] << nl
<< namedEnumTest::namedEnum[namedEnumTest::a] << nl;
Info<< "--- test read construction ---" << endl;
namedEnumTest::option dummy(namedEnumTest::namedEnum.read(Sin));
Info<< namedEnumTest::namedEnum[dummy] << endl;
Info<< "End\n" << endl;
return 0;
}
// ************************************************************************* //

View File

@ -0,0 +1,3 @@
Test-boundBox.C
EXE = $(FOAM_USER_APPBIN)/Test-boundBox

View File

@ -0,0 +1,7 @@
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,38 +22,28 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
Test bounding box behaviour
\*---------------------------------------------------------------------------*/
#include "NamedEnum.H"
#include "IOstreams.H"
#include "argList.H"
#include "Time.H"
#include "polyMesh.H"
#include "boundBox.H"
#include "treeBoundBox.H"
#include "cellModeller.H"
using namespace Foam;
class namedEnumTest
//- simple helper to create a cube
boundBox cube(scalar start, scalar width)
{
public:
enum options
{
a,
b,
c
};
static const Foam::NamedEnum<options, 3> namedEnum;
};
template<>
const char* Foam::NamedEnum<namedEnumTest::options, 3>::names[] =
{
"a",
"b",
"c"
};
const Foam::NamedEnum<namedEnumTest::options, 3> namedEnumTest::namedEnum;
return boundBox
(
point(start, start, start),
point(start + width, start + width, start + width)
);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -61,13 +51,14 @@ const Foam::NamedEnum<namedEnumTest::options, 3> namedEnumTest::namedEnum;
int main(int argc, char *argv[])
{
Info<< namedEnumTest::namedEnum["a"] << endl;
Info<< namedEnumTest::namedEnum[namedEnumTest::a] << endl;
#include "setRootCase.H"
// #include "createTime.H"
// #include "createMesh.H"
namedEnumTest::options hmm(namedEnumTest::namedEnum.read(Sin));
Info<< namedEnumTest::namedEnum[hmm] << endl;
const cellModel& hex = *(cellModeller::lookup("hex"));
Info<< "End\n" << endl;
Info<<"boundBox faces: " << boundBox::faces << endl;
Info<<"hex faces: " << hex.modelFaces() << endl;
return 0;
}

View File

@ -30,7 +30,8 @@ writeInterval #codeStream
codeOptions
#{
-I$(LIB_SRC)/finiteVolume/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
#};
localCode

View File

@ -0,0 +1,3 @@
Test-cstring.C
EXE = $(FOAM_USER_APPBIN)/Test-cstring

View File

@ -0,0 +1,2 @@
/* EXE_INC = -I$(LIB_SRC)/cfdTools/include */
/* EXE_LIBS = -lfiniteVolume */

View File

@ -0,0 +1,99 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
Test some string functionality
\*---------------------------------------------------------------------------*/
#include "CStringList.H"
#include "DynamicList.H"
#include "IOstreams.H"
#include "fileNameList.H"
#include "stringList.H"
#include "wordList.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int print(int argc, char *argv[])
{
Info<< "argc=" << argc << endl;
for (int i=0; i<argc; ++i)
{
Info<< " argv[" << i << "] = \"" << argv[i] << "\"" << endl;
}
return argc;
}
int print(const CStringList& cstrLst)
{
return print(cstrLst.size(), cstrLst.strings());
}
// Main program:
int main(int argc, char *argv[])
{
DynamicList<string> dynlst;
dynlst.reserve(16);
dynlst.append("string1 with content");
dynlst.append("string2 other content");
dynlst.append("string3 done");
{
CStringList inC(dynlst);
Info<< "input: " << dynlst << endl;
print(inC);
}
Info<<"command-line with " << CStringList::count(argv) << " items"<< endl;
print(argc, argv);
{
dynlst.clear();
for (int i=0; i<argc; ++i)
{
dynlst.append(argv[i]);
}
Info<< "input: " << dynlst << endl;
CStringList inC(dynlst);
inC.reset(dynlst);
print(inC);
Info<< "length: " << inC.length() << endl;
std::cout.write(inC.data(), inC.length());
}
Info<< "\nEnd\n" << endl;
return 0;
}
// ************************************************************************* //

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -34,6 +34,7 @@ Description
#include "IOobject.H"
#include "IOstreams.H"
#include "OSspecific.H"
#include "POSIX.H"
using namespace Foam;
@ -99,6 +100,98 @@ int main()
}
// Test some copying and deletion
{
const fileName dirA("dirA");
const fileName lnA("lnA");
const fileName lnB("lnB");
const fileName dirB("dirB");
Foam::rmDir(dirA);
Foam::rm(lnA);
Foam::rm(lnB);
Foam::rmDir(dirB);
Info<< "Creating directory " << dirA << endl;
Foam::mkDir(dirA);
const int oldPosix = POSIX::debug;
POSIX::debug = 1;
// Create link and test it
Info<< "Creating softlink " << lnA << endl;
Foam::ln(dirA, lnA);
fileName::Type lnAType = lnA.type(false);
if (lnAType != fileName::LINK)
{
FatalErrorIn("Test-fileName") << "Type of softlink " << lnA
<< " should be " << fileName::LINK
<< " but is " << lnAType << exit(FatalError);
}
fileName::Type dirAType = lnA.type(true);
if (dirAType != fileName::DIRECTORY)
{
FatalErrorIn("Test-fileName") << "Type of what softlink " << lnA
<< " points to should be " << fileName::DIRECTORY
<< " but is " << dirAType << exit(FatalError);
}
// Copy link only
{
Info<< "Copying (non-follow) softlink " << lnA << " to " << lnB
<< endl;
Foam::cp(lnA, lnB, false);
if (lnB.type(false) != fileName::LINK)
{
FatalErrorIn("Test-fileName") << "Type of softlink " << lnB
<< " should be " << fileName::LINK
<< " but is " << lnB.type(false) << exit(FatalError);
}
if (lnB.type(true) != fileName::DIRECTORY)
{
FatalErrorIn("Test-fileName") << "Type of softlink " << lnB
<< " should be " << fileName::DIRECTORY
<< " but is " << lnB.type(true) << exit(FatalError);
}
// Delete
Foam::rm(lnB);
}
// Copy contents of link
{
Info<< "Copying (contents of) softlink " << lnA << " to " << lnB
<< endl;
Foam::cp(lnA, lnB, true);
if (lnB.type(false) != fileName::DIRECTORY)
{
FatalErrorIn("Test-fileName") << "Type of softlink " << lnB
<< " should be " << fileName::DIRECTORY
<< " but is " << lnB.type(false) << exit(FatalError);
}
// Delete
Foam::rm(lnB);
}
POSIX::debug = oldPosix;
Foam::rmDir(dirA);
Foam::rm(lnA);
}
// test findEtcFile
Info<< "\n\nfindEtcFile tests:" << nl
<< " controlDict => " << findEtcFile("controlDict") << nl

View File

@ -0,0 +1,3 @@
Test-fvc2D.C
EXE = $(FOAM_USER_APPBIN)/Test-fvc2D

View File

@ -0,0 +1,7 @@
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools

View File

@ -0,0 +1,75 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
test
Description
Finite volume method test code.
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "vector2D.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
typedef GeometricField<vector2D, fvPatchField, volMesh> volVector2DField;
defineTemplate2TypeNameAndDebug
(
volVector2DField::DimensionedInternalField,
0
);
defineTemplateTypeNameAndDebug(volVector2DField, 0);
typedef fvPatchField<vector2D> fvPatchVector2DField;
makeFvPatchField(fvPatchVector2DField)
}
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
GeometricField<vector2D, fvPatchField, volMesh> fld
(
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "end" << endl;
}
// ************************************************************************* //

View File

@ -0,0 +1,37 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\page pageUtilities Utilities
\section secUtilities Overview
The available utilities are grouped into the following categories:
- \ref grpMeshUtilities
- \ref grpMiscUtilities
- \ref grpPreProcessingUtilities
- \ref grpPostProcessingUtilities
- \ref grpThermoUtilities
- \ref grpSurfaceUtilities
\*---------------------------------------------------------------------------*/

View File

@ -0,0 +1,73 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpUtilities Utilities
@{
This group contains utilities
@}
\defgroup grpMeshUtilities Mesh
@{
\ingroup grpUtilities
This group contains meshing utilities
@}
\defgroup grpPreProcessingUtilities Pre-processing
@{
\ingroup grpUtilities
This group contains pre-processing utilities
@}
\defgroup grpPostProcessingUtilities Post-processing
@{
\ingroup grpUtilities
This group contains post-processing utilities
@}
\defgroup grpParallelUtilities Parallel
@{
\ingroup grpUtilities
This group contains parallel utilities
@}
\defgroup grpSurfaceUtilities Surface
@{
\ingroup grpUtilities
This group contains surface utilities
@}
\defgroup grpThermophysicalUtilities Thermophysical
@{
\ingroup grpUtilities
This group contains thermophysical utilities
@}
\defgroup grpMiscUtilities Miscellaneous
@{
\ingroup grpUtilities
This group contains miscellaneous utilities
@}
\*---------------------------------------------------------------------------*/

View File

@ -24,6 +24,9 @@ License
Application
PDRMesh
Group
grpMeshAdvancedUtilities
Description
Mesh and field preparation utility for PDR type simulations.

View File

@ -24,6 +24,9 @@ License
Application
collapseEdges
Group
grpMeshAdvancedUtilities
Description
Collapses short edges and combines edges that are in line.

View File

@ -24,6 +24,9 @@ License
Application
combinePatchFaces
Group
grpMeshAdvancedUtilities
Description
Checks for multiple patch faces on same cell and combines them.
Multiple patch faces can result from e.g. removal of refined

View File

@ -24,6 +24,9 @@ License
Application
modifyMesh
Group
grpMeshAdvancedUtilities
Description
Manipulates mesh elements.

View File

@ -24,6 +24,9 @@ License
Application
refineHexMesh
Group
grpMeshAdvancedUtilities
Description
Refines a hex mesh by 2x2x2 cell splitting.

View File

@ -24,6 +24,9 @@ License
Application
refineWallLayer
Group
grpMeshAdvancedUtilities
Description
Utility to refine cells next to patches.

View File

@ -24,6 +24,9 @@ License
Application
refinementLevel
Group
grpMeshAdvancedUtilities
Description
Tries to figure out what the refinement level is on refined cartesian
meshes. Run BEFORE snapping.

View File

@ -24,6 +24,9 @@ License
Application
removeFaces
Group
grpMeshAdvancedUtilities
Description
Utility to remove faces (combines cells on both sides).

View File

@ -24,6 +24,9 @@ License
Application
selectCells
Group
grpMeshAdvancedUtilities
Description
Select cells in relation to surface.

View File

@ -24,6 +24,9 @@ License
Application
snappyRefineMesh
Group
grpMeshAdvancedUtilities
Description
Utility to refine cells near to a surface.

View File

@ -24,6 +24,9 @@ License
Application
splitCells
Group
grpMeshAdvancedUtilities
Description
Utility to split cells with flat faces.

View File

@ -8,15 +8,15 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
# Get version info and arch-path
. $WM_PROJECT_DIR/etc/config.sh/functions
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/libccmio)
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
set -x
# Build libccmio (.so)
$WM_THIRD_PARTY_DIR/makeCCMIO
# Build libccmio (.a|.so)
$WM_THIRD_PARTY_DIR/makeCCMIO lib # libso
if [ -e $CCMIO_ARCH_PATH/include/libccmio/ccmio.h \
-a -e $FOAM_EXT_LIBBIN/libccmio.so ]
-a \( -e $CCMIO_ARCH_PATH/lib/libccmio.a -o $FOAM_EXT_LIBBIN/libccmio.so \) ]
then
wmake ccm26ToFoam
fi

View File

@ -6,4 +6,4 @@ EXE_INC = \
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools \
-L$(FOAM_EXT_LIBBIN) -lccmio
-L$(CCMIO_ARCH_PATH)/lib -L$(FOAM_EXT_LIBBIN) -lccmio

View File

@ -21,6 +21,12 @@ License
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
ccm26ToFoam
Group
grpMeshConversionUtilities
Description
Reads CCM files as written by Prostar/ccm using ccm 2.6 (not 2.4)

View File

@ -24,6 +24,9 @@ License
Application
ansysToFoam
Group
grpMeshConversionUtilities
Description
Converts an ANSYS input mesh file, exported from I-DEAS,
to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
cfx4ToFoam
Group
grpMeshConversionUtilities
Description
Converts a CFX 4 mesh to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
datToFoam
Group
grpMeshConversionUtilities
Description
Reads in a datToFoam mesh file and outputs a points file. Used in
conjunction with blockMesh.

View File

@ -24,6 +24,9 @@ License
Application
fluent3DMeshToFoam
Group
grpMeshConversionUtilities
Description
Converts a Fluent mesh to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
fluentMeshToFoam
Group
grpMeshConversionUtilities
Description
Converts a Fluent mesh to OpenFOAM format
including multiple region and region boundary handling.

View File

@ -24,6 +24,9 @@ License
Application
foamMeshToFluent
Group
grpMeshConversionUtilities
Description
Writes out the OpenFOAM mesh in Fluent mesh format.

View File

@ -24,6 +24,9 @@ License
Application
foamToStarMesh
Group
grpMeshConversionUtilities
Description
Reads an OpenFOAM mesh and writes a pro-STAR (v4) bnd/cel/vrt format.

View File

@ -24,6 +24,9 @@ License
Application
foamToSurface
Group
grpMeshConversionUtilities
Description
Reads an OpenFOAM mesh and writes the boundaries in a surface format.

View File

@ -24,6 +24,9 @@ License
Application
gambitToFoam
Group
grpMeshConversionUtilities
Description
Converts a GAMBIT mesh to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
gmshToFoam
group
grpMeshConversionUtilities
Description
Reads .msh file as written by Gmsh.

View File

@ -24,6 +24,9 @@ License
Application
ideasUnvToFoam
Group
grpMeshConversionUtilities
Description
I-Deas unv format mesh conversion.

View File

@ -24,6 +24,9 @@ License
Application
kivaToFoam
Group
grpMeshConversionUtilities
Description
Converts a KIVA3v grid to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
mshToFoam
Group
grpMeshConversionUtilities
Description
Converts .msh file generated by the Adventure system.

View File

@ -24,6 +24,9 @@ License
Application
netgenNeutralToFoam
Group
grpMeshConversionUtilities
Description
Converts neutral file format as written by Netgen v4.4.

View File

@ -24,6 +24,9 @@ License
Application
plot3dToFoam
Group
grpMeshConversionUtilities
Description
Plot3d mesh (ascii/formatted format) converter.

View File

@ -24,6 +24,9 @@ License
Application
sammToFoam
Group
grpMeshConversionUtilities
Description
Converts a Star-CD (v3) SAMM mesh to OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
star3ToFoam
Group
grpMeshConversionUtilities
Description
Converts a Star-CD (v3) pro-STAR mesh into OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
star4ToFoam
Group
grpMeshConversionUtilities
Description
Converts a Star-CD (v4) pro-STAR mesh into OpenFOAM format.

View File

@ -24,6 +24,9 @@ License
Application
tetgenToFoam
Group
grpMeshConversionUtilities
Description
Converts .ele and .node and .face files, written by tetgen.

View File

@ -21,6 +21,12 @@ License
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
vtkUnstructuredToFoam
Group
grpMeshConversionUtilities
Description
Converts ascii .vtk (legacy format) file generated by vtk/paraview.

View File

@ -24,6 +24,9 @@ License
Application
writeMeshObj
Group
grpMeshConversionUtilities
Description
For mesh debugging: writes mesh as three separate OBJ files which can
be viewed with e.g. javaview.

View File

@ -0,0 +1,51 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpMeshGenerationUtilities Generation
@{
\ingroup grpMeshUtilities
This group contains mesh generation utilities
@}
\defgroup grpMeshConversionUtilities Conversion
@{
\ingroup grpMeshUtilities
This group contains mesh conversion utilities
@}
\defgroup grpMeshManipulationUtilities Manipulation
@{
\ingroup grpMeshUtilities
This group contains mesh generation utilities
@}
\defgroup grpMeshAdvancedUtilities Advanced
@{
\ingroup grpMeshUtilities
This group contains advanced mesh utilities
@}
\*---------------------------------------------------------------------------*/

View File

@ -24,6 +24,9 @@ License
Application
blockMesh
Group
grpMeshGenerationUtilities
Description
A multi-block mesh generator.

View File

@ -24,6 +24,9 @@ License
Application
extrudeMesh
Group
grpMeshGenerationUtilities
Description
Extrude mesh from existing patch (by default outwards facing normals;
optional flips faces) or from patch read from file.

View File

@ -24,6 +24,9 @@ License
Application
extrudeToRegionMesh
Group
grpMeshGenerationUtilities
Description
Extrude faceZones (internal or boundary faces) or faceSets (boundary faces
only) into a separate mesh (as a different region).

View File

@ -24,6 +24,9 @@ License
Application
extrude2DMesh
Group
grpMeshGenerationUtilities
Description
Takes 2D mesh (all faces 2 points only, no front and back faces) and
creates a 3D mesh by extruding with specified thickness.

View File

@ -24,6 +24,9 @@ License
Application
foamyHexMesh
Group
grpMeshGenerationUtilities
Description
Conformal Voronoi automatic mesh generator

View File

@ -24,6 +24,9 @@ License
Application
foamyQuadMesh
Group
grpMeshGenerationUtilities
Description
Conformal-Voronoi 2D extruding automatic mesher with grid or read
initial points and point position relaxation with optional

View File

@ -24,6 +24,9 @@ License
Application
snappyHexMesh
Group
grpMeshGenerationUtilities
Description
Automatic split hex mesher. Refines and snaps to surface.
@ -610,6 +613,7 @@ void writeMesh
int main(int argc, char *argv[])
{
#include "addRegionOption.H"
#include "addOverwriteOption.H"
Foam::argList::addBoolOption
(
@ -759,20 +763,29 @@ int main(int argc, char *argv[])
// }
// else
{
Foam::Info
<< "Create mesh for time = "
<< runTime.timeName() << Foam::nl << Foam::endl;
word regionName;
if (args.optionReadIfPresent("region", regionName))
{
Info<< "Create mesh " << regionName << " for time = "
<< runTime.timeName() << nl << endl;
}
else
{
regionName = fvMesh::defaultRegion;
Info<< "Create mesh for time = "
<< runTime.timeName() << nl << endl;
}
meshPtr.set
(
new fvMesh
(
Foam::IOobject
IOobject
(
Foam::fvMesh::defaultRegion,
regionName,
runTime.timeName(),
runTime,
Foam::IOobject::MUST_READ
IOobject::MUST_READ
)
)
);

View File

@ -24,6 +24,9 @@ License
Application
attachMesh
Group
grpMeshManipulationUtilities
Description
Attach topologically detached mesh using prescribed mesh modifiers.

View File

@ -24,6 +24,9 @@ License
Application
autoPatch
Group
grpMeshManipulationUtilities
Description
Divides external faces into patches based on (user supplied) feature
angle.

View File

@ -24,6 +24,9 @@ License
Application
checkMesh
Group
grpMeshManipulationUtilities
Description
Checks validity of a mesh.

View File

@ -24,6 +24,9 @@ License
Application
createBaffles
Group
grpMeshManipulationUtilities
Description
Makes internal faces into boundary faces. Does not duplicate points, unlike
mergeOrSplitBaffles.

View File

@ -24,6 +24,9 @@ License
Application
createPatch
Group
grpMeshManipulationUtilities
Description
Utility to create patches out of selected boundary faces. Faces come either
from existing patches or from a faceSet.

View File

@ -24,6 +24,9 @@ License
Application
deformedGeom
Group
grpMeshManipulationUtilities
Description
Deforms a polyMesh using a displacement field U and a scaling factor
supplied as an argument.

View File

@ -24,6 +24,9 @@ License
Application
flattenMesh
Group
grpMeshManipulationUtilities
Description
Flattens the front and back planes of a 2D cartesian mesh.

View File

@ -24,6 +24,9 @@ License
Application
insideCells
Group
grpMeshManipulationUtilities
Description
Picks up cells with cell centre 'inside' of surface.
Requires surface to be closed and singly connected.

View File

@ -24,6 +24,9 @@ License
Application
mergeMeshes
Group
grpMeshManipulationUtilities
Description
Merges two meshes.

View File

@ -24,6 +24,9 @@ License
Application
mergeOrSplitBaffles
Group
grpMeshManipulationUtilities
Description
Detects faces that share points (baffles). Either merge them or
duplicate the points.

View File

@ -24,6 +24,9 @@ License
Application
mirrorMesh
Group
grpMeshManipulationUtilities
Description
Mirrors a mesh around a given plane.

View File

@ -24,6 +24,9 @@ License
Application
moveDynamicMesh
Group
grpMeshManipulationUtilities
Description
Mesh motion and topological mesh changes utility.

View File

@ -24,6 +24,9 @@ License
Application
moveEngineMesh
Group
grpMeshManipulationUtilities
Description
Solver for moving meshes for engine calculations.

View File

@ -24,6 +24,9 @@ License
Application
moveMesh
Group
grpMeshManipulationUtilities
Description
Solver for moving meshes.

View File

@ -24,6 +24,9 @@ License
Application
objToVTK
Group
grpMeshManipulationUtilities
Description
Read obj line (not surface!) file and convert into vtk.

View File

@ -24,6 +24,9 @@ License
Application
orientFaceZone
Group
grpMeshManipulationUtilities
Description
Corrects orientation of faceZone.

View File

@ -24,6 +24,9 @@ License
Application
polyDualMesh
Group
grpMeshManipulationUtilities
Description
Calculates the dual of a polyMesh. Adheres to all the feature and patch
edges.

View File

@ -24,6 +24,9 @@ License
Application
refineMesh
Group
grpMeshManipulationUtilities
Description
Utility to refine cells in multiple directions.

View File

@ -24,6 +24,9 @@ License
Application
renumberMesh
Group
grpMeshManipulationUtilities
Description
Renumbers the cell list in order to reduce the bandwidth, reading and
renumbering all fields from all the time directories.

View File

@ -24,6 +24,9 @@ License
Application
rotateMesh
Group
grpMeshManipulationUtilities
Description
Rotates the mesh and fields from the direction n1 to direction n2.

Some files were not shown because too many files have changed in this diff Show More