mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
applications/solvers/DNS/dnsFoam/Allwmake
Executable file
14
applications/solvers/DNS/dnsFoam/Allwmake
Executable 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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -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)
|
||||
);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
Test-namedEnum.C
|
||||
Test-NamedEnum.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-NamedEnum
|
||||
|
||||
114
applications/test/NamedEnum/Test-NamedEnum.C
Normal file
114
applications/test/NamedEnum/Test-NamedEnum.C
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
3
applications/test/boundBox/Make/files
Normal file
3
applications/test/boundBox/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
Test-boundBox.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-boundBox
|
||||
7
applications/test/boundBox/Make/options
Normal file
7
applications/test/boundBox/Make/options
Normal file
@ -0,0 +1,7 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools
|
||||
@ -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;
|
||||
}
|
||||
@ -30,7 +30,8 @@ writeInterval #codeStream
|
||||
|
||||
codeOptions
|
||||
#{
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
#};
|
||||
|
||||
localCode
|
||||
|
||||
3
applications/test/cstring/Make/files
Normal file
3
applications/test/cstring/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
Test-cstring.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-cstring
|
||||
2
applications/test/cstring/Make/options
Normal file
2
applications/test/cstring/Make/options
Normal file
@ -0,0 +1,2 @@
|
||||
/* EXE_INC = -I$(LIB_SRC)/cfdTools/include */
|
||||
/* EXE_LIBS = -lfiniteVolume */
|
||||
99
applications/test/cstring/Test-cstring.C
Normal file
99
applications/test/cstring/Test-cstring.C
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
|
||||
3
applications/test/fvc2D/Make/files
Normal file
3
applications/test/fvc2D/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
Test-fvc2D.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-fvc2D
|
||||
7
applications/test/fvc2D/Make/options
Normal file
7
applications/test/fvc2D/Make/options
Normal file
@ -0,0 +1,7 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools
|
||||
75
applications/test/fvc2D/Test-fvc2D.C
Normal file
75
applications/test/fvc2D/Test-fvc2D.C
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
37
applications/utilities/doc/utilities.dox
Normal file
37
applications/utilities/doc/utilities.dox
Normal 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
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
73
applications/utilities/doc/utilitiesDoc.H
Normal file
73
applications/utilities/doc/utilitiesDoc.H
Normal 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
|
||||
@}
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
PDRMesh
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Mesh and field preparation utility for PDR type simulations.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
collapseEdges
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Collapses short edges and combines edges that are in line.
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
modifyMesh
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Manipulates mesh elements.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
refineHexMesh
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Refines a hex mesh by 2x2x2 cell splitting.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
refineWallLayer
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Utility to refine cells next to patches.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
removeFaces
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Utility to remove faces (combines cells on both sides).
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
selectCells
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Select cells in relation to surface.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
snappyRefineMesh
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Utility to refine cells near to a surface.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
splitCells
|
||||
|
||||
Group
|
||||
grpMeshAdvancedUtilities
|
||||
|
||||
Description
|
||||
Utility to split cells with flat faces.
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
ansysToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts an ANSYS input mesh file, exported from I-DEAS,
|
||||
to OpenFOAM format.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
cfx4ToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a CFX 4 mesh to OpenFOAM format.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
fluent3DMeshToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a Fluent mesh to OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
fluentMeshToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a Fluent mesh to OpenFOAM format
|
||||
including multiple region and region boundary handling.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
foamMeshToFluent
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Writes out the OpenFOAM mesh in Fluent mesh format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
foamToStarMesh
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Reads an OpenFOAM mesh and writes a pro-STAR (v4) bnd/cel/vrt format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
foamToSurface
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Reads an OpenFOAM mesh and writes the boundaries in a surface format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
gambitToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a GAMBIT mesh to OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
gmshToFoam
|
||||
|
||||
group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Reads .msh file as written by Gmsh.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
ideasUnvToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
I-Deas unv format mesh conversion.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
kivaToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a KIVA3v grid to OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
mshToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts .msh file generated by the Adventure system.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
netgenNeutralToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts neutral file format as written by Netgen v4.4.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
plot3dToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Plot3d mesh (ascii/formatted format) converter.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
sammToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a Star-CD (v3) SAMM mesh to OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
star3ToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a Star-CD (v3) pro-STAR mesh into OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
star4ToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts a Star-CD (v4) pro-STAR mesh into OpenFOAM format.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
tetgenToFoam
|
||||
|
||||
Group
|
||||
grpMeshConversionUtilities
|
||||
|
||||
Description
|
||||
Converts .ele and .node and .face files, written by tetgen.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
51
applications/utilities/mesh/doc/meshUtilitiesDoc.H
Normal file
51
applications/utilities/mesh/doc/meshUtilitiesDoc.H
Normal 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
|
||||
@}
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
blockMesh
|
||||
|
||||
Group
|
||||
grpMeshGenerationUtilities
|
||||
|
||||
Description
|
||||
A multi-block mesh generator.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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).
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
foamyHexMesh
|
||||
|
||||
Group
|
||||
grpMeshGenerationUtilities
|
||||
|
||||
Description
|
||||
Conformal Voronoi automatic mesh generator
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
attachMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Attach topologically detached mesh using prescribed mesh modifiers.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
autoPatch
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Divides external faces into patches based on (user supplied) feature
|
||||
angle.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
checkMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Checks validity of a mesh.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
createBaffles
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Makes internal faces into boundary faces. Does not duplicate points, unlike
|
||||
mergeOrSplitBaffles.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
flattenMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Flattens the front and back planes of a 2D cartesian mesh.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
mergeMeshes
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Merges two meshes.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
mergeOrSplitBaffles
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Detects faces that share points (baffles). Either merge them or
|
||||
duplicate the points.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
mirrorMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Mirrors a mesh around a given plane.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
moveDynamicMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Mesh motion and topological mesh changes utility.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
moveEngineMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Solver for moving meshes for engine calculations.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
moveMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Solver for moving meshes.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
objToVTK
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Read obj line (not surface!) file and convert into vtk.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
orientFaceZone
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Corrects orientation of faceZone.
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
polyDualMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Calculates the dual of a polyMesh. Adheres to all the feature and patch
|
||||
edges.
|
||||
|
||||
@ -24,6 +24,9 @@ License
|
||||
Application
|
||||
refineMesh
|
||||
|
||||
Group
|
||||
grpMeshManipulationUtilities
|
||||
|
||||
Description
|
||||
Utility to refine cells in multiple directions.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
Reference in New Issue
Block a user