mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'olesenm'
This commit is contained in:
@ -579,7 +579,9 @@ WARN_LOGFILE =
|
|||||||
# $(WM_PROJECT_DIR)/applications/solvers
|
# $(WM_PROJECT_DIR)/applications/solvers
|
||||||
|
|
||||||
# limit input for testing purposes
|
# limit input for testing purposes
|
||||||
INPUT = $(WM_PROJECT_DIR)/src/OpenFOAM/global
|
INPUT = $(WM_PROJECT_DIR)/src/OpenFOAM/global \
|
||||||
|
$(WM_PROJECT_DIR)/src/OpenFOAM/containers \
|
||||||
|
$(WM_PROJECT_DIR)/src/OpenFOAM/primitives
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||||
|
|||||||
@ -108,6 +108,12 @@ case OpenFOAM:
|
|||||||
set gmp_version=gmp-4.2.4
|
set gmp_version=gmp-4.2.4
|
||||||
set mpfr_version=mpfr-2.4.1
|
set mpfr_version=mpfr-2.4.1
|
||||||
breaksw
|
breaksw
|
||||||
|
case Clang:
|
||||||
|
# using clang - not gcc
|
||||||
|
setenv WM_CC 'clang'
|
||||||
|
setenv WM_CXX 'clang++'
|
||||||
|
set clang_version=llvm-2.8
|
||||||
|
breaksw
|
||||||
default:
|
default:
|
||||||
echo
|
echo
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/settings.csh:"
|
echo "Warning in $WM_PROJECT_DIR/etc/settings.csh:"
|
||||||
@ -159,6 +165,25 @@ case OpenFOAM:
|
|||||||
endif
|
endif
|
||||||
unset gcc_version gccDir
|
unset gcc_version gccDir
|
||||||
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
||||||
|
|
||||||
|
if ( $?clang_version ) then
|
||||||
|
set clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
||||||
|
|
||||||
|
# Check that the compiler directory can be found
|
||||||
|
if ( ! -d "$clangDir" ) then
|
||||||
|
echo
|
||||||
|
echo "Warning in $WM_PROJECT_DIR/etc/settings.csh:"
|
||||||
|
echo " Cannot find $clangDir installation."
|
||||||
|
echo " Please install this compiler version or if you wish to use the system compiler,"
|
||||||
|
echo " change the 'compilerInstall' setting to 'system' in this file"
|
||||||
|
echo
|
||||||
|
endif
|
||||||
|
|
||||||
|
_foamAddMan $clangDir/man
|
||||||
|
_foamAddPath $clangDir/bin
|
||||||
|
endif
|
||||||
|
unset clang_version clangDir
|
||||||
|
|
||||||
breaksw
|
breaksw
|
||||||
endsw
|
endsw
|
||||||
|
|
||||||
|
|||||||
@ -131,6 +131,12 @@ OpenFOAM)
|
|||||||
gmp_version=gmp-4.2.4
|
gmp_version=gmp-4.2.4
|
||||||
mpfr_version=mpfr-2.4.1
|
mpfr_version=mpfr-2.4.1
|
||||||
;;
|
;;
|
||||||
|
Clang)
|
||||||
|
# using clang - not gcc
|
||||||
|
export WM_CC='clang'
|
||||||
|
export WM_CXX='clang++'
|
||||||
|
clang_version=llvm-2.8
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo
|
echo
|
||||||
echo "Warning in $WM_PROJECT_DIR/etc/settings.sh:"
|
echo "Warning in $WM_PROJECT_DIR/etc/settings.sh:"
|
||||||
@ -183,6 +189,25 @@ OpenFOAM)
|
|||||||
fi
|
fi
|
||||||
unset gcc_version gccDir
|
unset gcc_version gccDir
|
||||||
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
unset gmp_version gmpDir mpfr_version mpfrDir mpc_version mpcDir
|
||||||
|
|
||||||
|
if [ -n "$clang_version" ]
|
||||||
|
then
|
||||||
|
clangDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER_ARCH/$clang_version
|
||||||
|
|
||||||
|
# Check that the compiler directory can be found
|
||||||
|
[ -d "$clangDir" ] || {
|
||||||
|
echo
|
||||||
|
echo "Warning in $WM_PROJECT_DIR/etc/settings.sh:"
|
||||||
|
echo " Cannot find $clangDir installation."
|
||||||
|
echo " Please install this compiler version or if you wish to use the system compiler,"
|
||||||
|
echo " change the 'compilerInstall' setting to 'system' in this file"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
_foamAddMan $clangDir/share/man
|
||||||
|
_foamAddPath $clangDir/bin
|
||||||
|
fi
|
||||||
|
unset clang_version clangDir
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@ -49,6 +49,11 @@ Class
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::fileMonitor, 0);
|
defineTypeNameAndDebug(Foam::fileMonitor, 0);
|
||||||
|
|
||||||
|
const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
|
||||||
|
Foam::fileMonitor::fileStateNames_;
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
|
const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
|
||||||
{
|
{
|
||||||
@ -56,12 +61,7 @@ const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
|
|||||||
"modified",
|
"modified",
|
||||||
"deleted"
|
"deleted"
|
||||||
};
|
};
|
||||||
const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
|
|
||||||
Foam::fileMonitor::fileStateNames_;
|
|
||||||
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
//- Reduction operator for PackedList of fileState
|
//- Reduction operator for PackedList of fileState
|
||||||
class reduceFileStates
|
class reduceFileStates
|
||||||
{
|
{
|
||||||
|
|||||||
@ -51,6 +51,12 @@ SeeAlso
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Forward declaration
|
||||||
|
class PackedBoolList;
|
||||||
|
|
||||||
|
//- @typedef A List of PackedBoolList
|
||||||
|
typedef List<PackedBoolList> PackedBoolListList;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class PackedBoolList Declaration
|
Class PackedBoolList Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|||||||
@ -59,6 +59,7 @@ template<class T> class SubList;
|
|||||||
template<class T> class UList;
|
template<class T> class UList;
|
||||||
template<class T> Ostream& operator<<(Ostream&, const UList<T>&);
|
template<class T> Ostream& operator<<(Ostream&, const UList<T>&);
|
||||||
|
|
||||||
|
typedef UList<label> labelUList;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class UList Declaration
|
Class UList Declaration
|
||||||
|
|||||||
@ -32,6 +32,8 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::UPstream, 0);
|
defineTypeNameAndDebug(Foam::UPstream, 0);
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
|
const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
|
||||||
{
|
{
|
||||||
@ -39,6 +41,8 @@ const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
|
|||||||
"scheduled",
|
"scheduled",
|
||||||
"nonBlocking"
|
"nonBlocking"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::UPstream::commsTypes, 3>
|
const Foam::NamedEnum<Foam::UPstream::commsTypes, 3>
|
||||||
Foam::UPstream::commsTypeNames;
|
Foam::UPstream::commsTypeNames;
|
||||||
|
|||||||
@ -32,6 +32,8 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::Time, 0);
|
defineTypeNameAndDebug(Foam::Time, 0);
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
|
const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
|
||||||
{
|
{
|
||||||
@ -41,9 +43,6 @@ const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
|
|||||||
"nextWrite"
|
"nextWrite"
|
||||||
};
|
};
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::Time::stopAtControls, 4>
|
|
||||||
Foam::Time::stopAtControlNames_;
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
|
const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
|
||||||
{
|
{
|
||||||
@ -53,6 +52,10 @@ const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
|
|||||||
"clockTime",
|
"clockTime",
|
||||||
"cpuTime"
|
"cpuTime"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const Foam::NamedEnum<Foam::Time::stopAtControls, 4>
|
||||||
|
Foam::Time::stopAtControlNames_;
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::Time::writeControls, 5>
|
const Foam::NamedEnum<Foam::Time::writeControls, 5>
|
||||||
Foam::Time::writeControlNames_;
|
Foam::Time::writeControlNames_;
|
||||||
|
|||||||
@ -27,6 +27,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum
|
const char* Foam::NamedEnum
|
||||||
<
|
<
|
||||||
@ -37,6 +39,7 @@ const char* Foam::NamedEnum
|
|||||||
"timeStep",
|
"timeStep",
|
||||||
"outputTime"
|
"outputTime"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::outputFilterOutputControl::outputControls, 2>
|
const Foam::NamedEnum<Foam::outputFilterOutputControl::outputControls, 2>
|
||||||
Foam::outputFilterOutputControl::outputControlNames_;
|
Foam::outputFilterOutputControl::outputControlNames_;
|
||||||
|
|||||||
@ -42,7 +42,7 @@ namespace Foam
|
|||||||
|
|
||||||
// Forward declaration of friend functions and operators
|
// Forward declaration of friend functions and operators
|
||||||
|
|
||||||
class lduScheduleEntry;
|
struct lduScheduleEntry;
|
||||||
Ostream& operator<<(Ostream& os, const lduScheduleEntry& lb);
|
Ostream& operator<<(Ostream& os, const lduScheduleEntry& lb);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -44,16 +44,20 @@ namespace Foam
|
|||||||
|
|
||||||
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, word);
|
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, word);
|
||||||
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, dictionary);
|
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, dictionary);
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>::names[] =
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::cyclicPolyPatch::transformType,
|
||||||
|
4
|
||||||
|
>::names[] =
|
||||||
{
|
{
|
||||||
"unknown",
|
"unknown",
|
||||||
"rotational",
|
"rotational",
|
||||||
"translational",
|
"translational",
|
||||||
"noOrdering"
|
"noOrdering"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>
|
const Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>
|
||||||
Foam::cyclicPolyPatch::transformTypeNames;
|
Foam::cyclicPolyPatch::transformTypeNames;
|
||||||
|
|||||||
@ -49,7 +49,7 @@ Foam::PatchTools::sortedEdgeFaces
|
|||||||
const Field<PointType>& localPoints = p.localPoints();
|
const Field<PointType>& localPoints = p.localPoints();
|
||||||
|
|
||||||
// create the lists for the various results. (resized on completion)
|
// create the lists for the various results. (resized on completion)
|
||||||
labelListList& sortedEdgeFaces = labelListList(edgeFaces.size());
|
labelListList sortedEdgeFaces(edgeFaces.size());
|
||||||
|
|
||||||
forAll(edgeFaces, edgeI)
|
forAll(edgeFaces, edgeI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -29,6 +29,8 @@ License
|
|||||||
|
|
||||||
Foam::scalar Foam::intersection::planarTol_ = 0.2;
|
Foam::scalar Foam::intersection::planarTol_ = 0.2;
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
|
const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
|
||||||
{
|
{
|
||||||
@ -36,9 +38,6 @@ const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
|
|||||||
"contactSphere"
|
"contactSphere"
|
||||||
};
|
};
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::intersection::direction, 2>
|
|
||||||
Foam::intersection::directionNames_;
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
|
const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
|
||||||
{
|
{
|
||||||
@ -46,10 +45,13 @@ const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
|
|||||||
"halfRay",
|
"halfRay",
|
||||||
"visible"
|
"visible"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const Foam::NamedEnum<Foam::intersection::direction, 2>
|
||||||
|
Foam::intersection::directionNames_;
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::intersection::algorithm, 3>
|
const Foam::NamedEnum<Foam::intersection::algorithm, 3>
|
||||||
Foam::intersection::algorithmNames_;
|
Foam::intersection::algorithmNames_;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -21,6 +21,12 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::boolUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of bool
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::boolList
|
Foam::boolList
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<bool> boolUList;
|
||||||
|
|
||||||
typedef List<bool> boolList;
|
typedef List<bool> boolList;
|
||||||
typedef List<List<bool> > boolListList;
|
typedef List<List<bool> > boolListList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::fileNameUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of fileNames.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::fileNameList
|
Foam::fileNameList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of fileNames.
|
A List of fileNames.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<fileName> fileNameUList;
|
||||||
|
|
||||||
typedef List<fileName> fileNameList;
|
typedef List<fileName> fileNameList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,19 @@ Typedef
|
|||||||
Foam::labelList
|
Foam::labelList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Label container classes
|
A List of labels
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::labelListList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A List of labelList
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::labelListListList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A List of labelListList
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,11 +51,11 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
// Note: frequently used UList version is located in container itself
|
||||||
|
|
||||||
typedef List<label> labelList;
|
typedef List<label> labelList;
|
||||||
typedef List<labelList> labelListList;
|
typedef List<labelList> labelListList;
|
||||||
typedef List<labelListList> labelListListList;
|
typedef List<labelListList> labelListListList;
|
||||||
|
|
||||||
typedef UList<label> unallocLabelList;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::scalarUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of scalars.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::scalarList
|
Foam::scalarList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of scalars.
|
A List of scalars.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<scalar> scalarUList;
|
||||||
|
|
||||||
typedef List<scalar> scalarList;
|
typedef List<scalar> scalarList;
|
||||||
typedef List<scalarList> scalarListList;
|
typedef List<scalarList> scalarListList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::sphericalTensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of sphericalTensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::sphericalTensorList
|
Foam::sphericalTensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of sphericalTensors.
|
A List of sphericalTensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<sphericalTensor> sphericalTensorUList;
|
||||||
|
|
||||||
typedef List<sphericalTensor> sphericalTensorList;
|
typedef List<sphericalTensor> sphericalTensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::stringUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of strings.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::stringList
|
Foam::stringList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of strings.
|
A List of strings.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<string> stringUList;
|
||||||
|
|
||||||
typedef List<string> stringList;
|
typedef List<string> stringList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::symmTensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of symmTensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::symmTensorList
|
Foam::symmTensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of symmTensors.
|
A List of symmTensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<symmTensor> symmTensorUList;
|
||||||
|
|
||||||
typedef List<symmTensor> symmTensorList;
|
typedef List<symmTensor> symmTensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::tensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of tensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::tensorList
|
Foam::tensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of tensors.
|
A List of tensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<tensor> tensorUList;
|
||||||
|
|
||||||
typedef List<tensor> tensorList;
|
typedef List<tensor> tensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::vectorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of vectors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::vectorList
|
Foam::vectorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of vectors.
|
A List of vectors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<vector> vectorUList;
|
||||||
|
|
||||||
typedef List<vector> vectorList;
|
typedef List<vector> vectorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::wordUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of words.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::wordList
|
Foam::wordList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of words.
|
A List of words.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<word> wordUList;
|
||||||
|
|
||||||
typedef List<word> wordList;
|
typedef List<word> wordList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::wordReUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of wordRe (word or regular expression)
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::wordReList
|
Foam::wordReList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of wordRe (word or regular expression)
|
A List of wordRe (word or regular expression)
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<wordRe> wordReUList;
|
||||||
|
|
||||||
typedef List<wordRe> wordReList;
|
typedef List<wordRe> wordReList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* const Foam::labelTensor::typeName = "labelTensor";
|
const char* const Foam::labelTensor::typeName = "labelTensor";
|
||||||
|
|
||||||
@ -54,6 +56,7 @@ const Foam::labelTensor Foam::labelTensor::one
|
|||||||
1, 1, 1,
|
1, 1, 1,
|
||||||
1, 1, 1
|
1, 1, 1
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -27,6 +27,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* const Foam::labelVector::typeName = "labelVector";
|
const char* const Foam::labelVector::typeName = "labelVector";
|
||||||
|
|
||||||
@ -38,6 +40,6 @@ const Foam::labelVector Foam::labelVector::zero(0, 0, 0);
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
const Foam::labelVector Foam::labelVector::one(1, 1, 1);
|
const Foam::labelVector Foam::labelVector::one(1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -35,6 +35,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
|
const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
|
||||||
{
|
{
|
||||||
@ -42,12 +44,12 @@ const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
|
|||||||
"tan2",
|
"tan2",
|
||||||
"normal"
|
"normal"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::directions::directionType, 3>
|
const Foam::NamedEnum<Foam::directions::directionType, 3>
|
||||||
Foam::directions::directionTypeNames_;
|
Foam::directions::directionTypeNames_;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// For debugging
|
// For debugging
|
||||||
|
|||||||
@ -45,15 +45,18 @@ namespace Foam
|
|||||||
slidingInterface,
|
slidingInterface,
|
||||||
dictionary
|
dictionary
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>::names[] =
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::slidingInterface::typeOfMatch,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
{
|
{
|
||||||
"integral",
|
"integral",
|
||||||
"partial"
|
"partial"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>
|
const Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>
|
||||||
|
|||||||
@ -21,6 +21,12 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Namespace
|
||||||
|
Foam::porousMedia
|
||||||
|
|
||||||
|
Description
|
||||||
|
Namespace for models related to porous media
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::porousZone
|
Foam::porousZone
|
||||||
|
|
||||||
|
|||||||
@ -27,6 +27,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
|
const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
|
||||||
{
|
{
|
||||||
@ -35,7 +37,7 @@ const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
|
|||||||
"solid",
|
"solid",
|
||||||
"unknown"
|
"unknown"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>
|
const Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>
|
||||||
Foam::phaseProperties::phaseTypeNames_;
|
Foam::phaseProperties::phaseTypeNames_;
|
||||||
|
|||||||
@ -34,6 +34,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char*
|
const char*
|
||||||
Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
|
Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
|
||||||
@ -43,6 +45,8 @@ Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
|
|||||||
"insidePoint",
|
"insidePoint",
|
||||||
"none"
|
"none"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>
|
const Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>
|
||||||
Foam::refinementSurfaces::areaSelectionAlgoNames;
|
Foam::refinementSurfaces::areaSelectionAlgoNames;
|
||||||
|
|||||||
@ -33,13 +33,18 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceToCell, 0);
|
defineTypeNameAndDebug(faceToCell, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToCell, word);
|
addToRunTimeSelectionTable(topoSetSource, faceToCell, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToCell, istream);
|
addToRunTimeSelectionTable(topoSetSource, faceToCell, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceToCell::faceAction, 4>::names[] =
|
||||||
|
{
|
||||||
|
"neighbour",
|
||||||
|
"owner",
|
||||||
|
"any",
|
||||||
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,15 +56,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceToCell::usage_
|
|||||||
" of the faces in the faceSet or where all faces are in the faceSet\n\n"
|
" of the faces in the faceSet or where all faces are in the faceSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceToCell::faceAction, 4>::names[] =
|
|
||||||
{
|
|
||||||
"neighbour",
|
|
||||||
"owner",
|
|
||||||
"any",
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceToCell::faceAction, 4>
|
const Foam::NamedEnum<Foam::faceToCell::faceAction, 4>
|
||||||
Foam::faceToCell::faceActionNames_;
|
Foam::faceToCell::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -32,13 +32,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceZoneToCell, 0);
|
defineTypeNameAndDebug(faceZoneToCell, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, word);
|
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, istream);
|
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>::names[] =
|
||||||
|
{
|
||||||
|
"master",
|
||||||
|
"slave"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,14 +54,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceZoneToCell::usage_
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"master",
|
|
||||||
"slave"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>
|
const Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>
|
||||||
Foam::faceZoneToCell::faceActionNames_;
|
Foam::faceZoneToCell::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(pointToCell, 0);
|
defineTypeNameAndDebug(pointToCell, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToCell, word);
|
addToRunTimeSelectionTable(topoSetSource, pointToCell, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
|
addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
|
||||||
|
{
|
||||||
|
"any"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,13 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::pointToCell::usage_
|
|||||||
" Select all cells with any point in the pointSet\n\n"
|
" Select all cells with any point in the pointSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"any"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::pointToCell::pointAction, 1>
|
const Foam::NamedEnum<Foam::pointToCell::pointAction, 1>
|
||||||
Foam::pointToCell::pointActionNames_;
|
Foam::pointToCell::pointActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -34,13 +34,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(cellToFace, 0);
|
defineTypeNameAndDebug(cellToFace, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToFace, word);
|
addToRunTimeSelectionTable(topoSetSource, cellToFace, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
|
addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::cellToFace::cellAction, 2>::names[] =
|
||||||
|
{
|
||||||
|
"all",
|
||||||
|
"both"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -52,13 +55,6 @@ Foam::topoSetSource::addToUsageTable Foam::cellToFace::usage_
|
|||||||
" -both: faces where both neighbours are in the cellSet\n\n"
|
" -both: faces where both neighbours are in the cellSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::cellToFace::cellAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"all",
|
|
||||||
"both"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cellToFace::cellAction, 2>
|
const Foam::NamedEnum<Foam::cellToFace::cellAction, 2>
|
||||||
Foam::cellToFace::cellActionNames_;
|
Foam::cellToFace::cellActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(pointToFace, 0);
|
defineTypeNameAndDebug(pointToFace, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToFace, word);
|
addToRunTimeSelectionTable(topoSetSource, pointToFace, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToFace, istream);
|
addToRunTimeSelectionTable(topoSetSource, pointToFace, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::pointToFace::pointAction, 2>::names[] =
|
||||||
|
{
|
||||||
|
"any",
|
||||||
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -52,13 +55,6 @@ Foam::topoSetSource::addToUsageTable Foam::pointToFace::usage_
|
|||||||
" -all points in the pointSet\n\n"
|
" -all points in the pointSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::pointToFace::pointAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"any",
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::pointToFace::pointAction, 2>
|
const Foam::NamedEnum<Foam::pointToFace::pointAction, 2>
|
||||||
Foam::pointToFace::pointActionNames_;
|
Foam::pointToFace::pointActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(cellToPoint, 0);
|
defineTypeNameAndDebug(cellToPoint, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToPoint, word);
|
addToRunTimeSelectionTable(topoSetSource, cellToPoint, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToPoint, istream);
|
addToRunTimeSelectionTable(topoSetSource, cellToPoint, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>::names[] =
|
||||||
|
{
|
||||||
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,12 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::cellToPoint::usage_
|
|||||||
" Select all points of cells in the cellSet\n\n"
|
" Select all points of cells in the cellSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>
|
const Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>
|
||||||
Foam::cellToPoint::cellActionNames_;
|
Foam::cellToPoint::cellActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceToPoint, 0);
|
defineTypeNameAndDebug(faceToPoint, 0);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToPoint, word);
|
addToRunTimeSelectionTable(topoSetSource, faceToPoint, word);
|
||||||
|
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToPoint, istream);
|
addToRunTimeSelectionTable(topoSetSource, faceToPoint, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>::names[] =
|
||||||
|
{
|
||||||
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,12 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceToPoint::usage_
|
|||||||
" Select all points of faces in the faceSet\n\n"
|
" Select all points of faces in the faceSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>
|
const Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>
|
||||||
Foam::faceToPoint::faceActionNames_;
|
Foam::faceToPoint::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -34,10 +34,6 @@ namespace Foam
|
|||||||
defineTypeNameAndDebug(topoSetSource, 0);
|
defineTypeNameAndDebug(topoSetSource, 0);
|
||||||
defineRunTimeSelectionTable(topoSetSource, word);
|
defineRunTimeSelectionTable(topoSetSource, word);
|
||||||
defineRunTimeSelectionTable(topoSetSource, istream);
|
defineRunTimeSelectionTable(topoSetSource, istream);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Foam::HashTable<Foam::string>* Foam::topoSetSource::usageTablePtr_ = NULL;
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
||||||
@ -51,6 +47,10 @@ const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
|||||||
"list",
|
"list",
|
||||||
"remove"
|
"remove"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::HashTable<Foam::string>* Foam::topoSetSource::usageTablePtr_ = NULL;
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::topoSetSource::setAction, 8>
|
const Foam::NamedEnum<Foam::topoSetSource::setAction, 8>
|
||||||
|
|||||||
@ -49,17 +49,19 @@ namespace Foam
|
|||||||
distributedTriSurfaceMesh,
|
distributedTriSurfaceMesh,
|
||||||
dict
|
dict
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char*
|
const char* Foam::NamedEnum
|
||||||
Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>::names[] =
|
<
|
||||||
|
Foam::distributedTriSurfaceMesh::distributionType,
|
||||||
|
3
|
||||||
|
>::names[] =
|
||||||
{
|
{
|
||||||
"follow",
|
"follow",
|
||||||
"independent",
|
"independent",
|
||||||
"frozen"
|
"frozen"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>
|
const Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>
|
||||||
Foam::distributedTriSurfaceMesh::distributionTypeNames_;
|
Foam::distributedTriSurfaceMesh::distributionTypeNames_;
|
||||||
|
|||||||
@ -27,12 +27,16 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>::names[] =
|
const char* Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>::names[] =
|
||||||
{
|
{
|
||||||
"iteration",
|
"iteration",
|
||||||
"time"
|
"time"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>
|
const Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>
|
||||||
Foam::fieldAverageItem::baseTypeNames_;
|
Foam::fieldAverageItem::baseTypeNames_;
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::fieldMinMax, 0);
|
defineTypeNameAndDebug(Foam::fieldMinMax, 0);
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>::names[] =
|
const char* Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>::names[] =
|
||||||
{
|
{
|
||||||
"magnitude",
|
"magnitude",
|
||||||
"component"
|
"component"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>
|
const Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>
|
||||||
|
|||||||
@ -37,13 +37,21 @@ defineTypeNameAndDebug(Foam::abortCalculation, 0);
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::abortCalculation::actionType, 3>::names[] =
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::abortCalculation::actionType,
|
||||||
|
3
|
||||||
|
>::names[] =
|
||||||
{
|
{
|
||||||
"noWriteNow",
|
"noWriteNow",
|
||||||
"writeNow",
|
"writeNow",
|
||||||
"nextWrite"
|
"nextWrite"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::abortCalculation::actionType, 3>
|
const Foam::NamedEnum<Foam::abortCalculation::actionType, 3>
|
||||||
Foam::abortCalculation::actionTypeNames_;
|
Foam::abortCalculation::actionTypeNames_;
|
||||||
|
|||||||
@ -27,6 +27,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::coordSet::coordFormat, 5>::names[] =
|
const char* Foam::NamedEnum<Foam::coordSet::coordFormat, 5>::names[] =
|
||||||
{
|
{
|
||||||
@ -36,6 +38,8 @@ const char* Foam::NamedEnum<Foam::coordSet::coordFormat, 5>::names[] =
|
|||||||
"z",
|
"z",
|
||||||
"distance"
|
"distance"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::coordSet::coordFormat, 5>
|
const Foam::NamedEnum<Foam::coordSet::coordFormat, 5>
|
||||||
Foam::coordSet::coordFormatNames_;
|
Foam::coordSet::coordFormatNames_;
|
||||||
|
|||||||
@ -32,6 +32,8 @@ License
|
|||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace porousMedia
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(fixedTemperature, 0);
|
defineTypeNameAndDebug(fixedTemperature, 0);
|
||||||
|
|
||||||
@ -42,11 +44,12 @@ namespace Foam
|
|||||||
pZone
|
pZone
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::fixedTemperature::fixedTemperature(const porousZone& pZone)
|
Foam::porousMedia::fixedTemperature::fixedTemperature(const porousZone& pZone)
|
||||||
:
|
:
|
||||||
thermalModel(pZone, typeName),
|
thermalModel(pZone, typeName),
|
||||||
T_(readScalar(coeffDict_.lookup("T")))
|
T_(readScalar(coeffDict_.lookup("T")))
|
||||||
@ -55,13 +58,13 @@ Foam::fixedTemperature::fixedTemperature(const porousZone& pZone)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::fixedTemperature::~fixedTemperature()
|
Foam::porousMedia::fixedTemperature::~fixedTemperature()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::fixedTemperature::addEnthalpySource
|
void Foam::porousMedia::fixedTemperature::addEnthalpySource
|
||||||
(
|
(
|
||||||
const basicThermo& thermo,
|
const basicThermo& thermo,
|
||||||
const volScalarField& rho,
|
const volScalarField& rho,
|
||||||
|
|||||||
@ -22,10 +22,10 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::fixedTemperature
|
Foam::porousMedia::fixedTemperature
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Fixed temperature model
|
Fixed temperature model for porous media
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -40,6 +40,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
namespace porousMedia
|
||||||
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class fixedTemperature Declaration
|
Class fixedTemperature Declaration
|
||||||
@ -86,6 +88,10 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace porousMedia
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|||||||
@ -32,6 +32,8 @@ License
|
|||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace porousMedia
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(noThermalModel, 0);
|
defineTypeNameAndDebug(noThermalModel, 0);
|
||||||
|
|
||||||
@ -42,11 +44,12 @@ namespace Foam
|
|||||||
pZone
|
pZone
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::noThermalModel::noThermalModel(const porousZone& pZone)
|
Foam::porousMedia::noThermalModel::noThermalModel(const porousZone& pZone)
|
||||||
:
|
:
|
||||||
thermalModel(pZone)
|
thermalModel(pZone)
|
||||||
{}
|
{}
|
||||||
@ -54,13 +57,13 @@ Foam::noThermalModel::noThermalModel(const porousZone& pZone)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::noThermalModel::~noThermalModel()
|
Foam::porousMedia::noThermalModel::~noThermalModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::noThermalModel::addEnthalpySource
|
void Foam::porousMedia::noThermalModel::addEnthalpySource
|
||||||
(
|
(
|
||||||
const basicThermo&,
|
const basicThermo&,
|
||||||
const volScalarField&,
|
const volScalarField&,
|
||||||
|
|||||||
@ -22,10 +22,10 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::noThermalModel
|
Foam::porousMedia::noThermalModel
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Dummy model for 'none' option
|
A dummy thermal model porous media, corresponding to the 'none' option
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -40,6 +40,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
namespace porousMedia
|
||||||
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class noThermalModel Declaration
|
Class noThermalModel Declaration
|
||||||
@ -59,7 +61,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from porous zone
|
//- Construct from porous zone
|
||||||
noThermalModel(const porousZone& pZone);
|
noThermalModel(const porousZone&);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
@ -78,6 +80,10 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace porousMedia
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|||||||
@ -28,22 +28,25 @@ License
|
|||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace porousMedia
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(thermalModel, 0);
|
defineTypeNameAndDebug(thermalModel, 0);
|
||||||
defineRunTimeSelectionTable(thermalModel, pZone);
|
defineRunTimeSelectionTable(thermalModel, pZone);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::thermalModel::thermalModel(const porousZone& pZone)
|
Foam::porousMedia::thermalModel::thermalModel(const porousZone& pZone)
|
||||||
:
|
:
|
||||||
pZone_(pZone),
|
pZone_(pZone),
|
||||||
coeffDict_(dictionary::null)
|
coeffDict_(dictionary::null)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
Foam::thermalModel::thermalModel
|
Foam::porousMedia::thermalModel::thermalModel
|
||||||
(
|
(
|
||||||
const porousZone& pZone,
|
const porousZone& pZone,
|
||||||
const word& modelType
|
const word& modelType
|
||||||
@ -56,7 +59,7 @@ Foam::thermalModel::thermalModel
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::thermalModel::~thermalModel()
|
Foam::porousMedia::thermalModel::~thermalModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,10 +22,10 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::thermalModel
|
Foam::porousMedia::thermalModel
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Base class for selecting the temperature specification models
|
Base class to select the temperature specification models for porousMedia
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -43,8 +43,12 @@ Description
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Forward declaration of classes
|
||||||
class basicThermo;
|
class basicThermo;
|
||||||
|
|
||||||
|
namespace porousMedia
|
||||||
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class thermalModel Declaration
|
Class thermalModel Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -84,10 +88,10 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null from porous zone
|
//- Construct null from porous zone
|
||||||
thermalModel(const porousZone& pZone);
|
thermalModel(const porousZone&);
|
||||||
|
|
||||||
//- Construct from porous zone and model type name
|
//- Construct from porous zone and model type name
|
||||||
thermalModel(const porousZone& pZone, const word& modelType);
|
thermalModel(const porousZone&, const word& modelType);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
@ -95,7 +99,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Selector
|
//- Selector
|
||||||
static autoPtr<thermalModel> New(const porousZone& pZone);
|
static autoPtr<thermalModel> New(const porousZone&);
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -110,6 +114,10 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace porousMedia
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|||||||
@ -27,7 +27,8 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::autoPtr<Foam::thermalModel> Foam::thermalModel::New
|
Foam::autoPtr<Foam::porousMedia::thermalModel>
|
||||||
|
Foam::porousMedia::thermalModel::New
|
||||||
(
|
(
|
||||||
const porousZone& pZone
|
const porousZone& pZone
|
||||||
)
|
)
|
||||||
@ -43,7 +44,7 @@ Foam::autoPtr<Foam::thermalModel> Foam::thermalModel::New
|
|||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"thermalModel::New(const porousZone&)"
|
"porousMedia::thermalModel::New(const porousZone&)"
|
||||||
) << "Unknown thermalModel type "
|
) << "Unknown thermalModel type "
|
||||||
<< modelType << nl << nl
|
<< modelType << nl << nl
|
||||||
<< "Valid thermalModel types are :" << endl
|
<< "Valid thermalModel types are :" << endl
|
||||||
@ -51,7 +52,7 @@ Foam::autoPtr<Foam::thermalModel> Foam::thermalModel::New
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<thermalModel>(cstrIter()(pZone));
|
return autoPtr<porousMedia::thermalModel>(cstrIter()(pZone));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ Foam::thermalPorousZone::thermalPorousZone
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
porousZone(key, mesh, dict),
|
porousZone(key, mesh, dict),
|
||||||
model_(thermalModel::New(*this))
|
model_(porousMedia::thermalModel::New(*this))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ class thermalPorousZone
|
|||||||
void operator=(const thermalPorousZone&);
|
void operator=(const thermalPorousZone&);
|
||||||
|
|
||||||
//- Thermal model
|
//- Thermal model
|
||||||
autoPtr<thermalModel> model_;
|
autoPtr<porousMedia::thermalModel> model_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -33,7 +33,6 @@ License
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(alphaContactAngleFvPatchScalarField, 0);
|
defineTypeNameAndDebug(alphaContactAngleFvPatchScalarField, 0);
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum
|
const char* Foam::NamedEnum
|
||||||
@ -47,6 +46,7 @@ const char* Foam::NamedEnum
|
|||||||
"zeroGradient",
|
"zeroGradient",
|
||||||
"alpha"
|
"alpha"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum
|
const Foam::NamedEnum
|
||||||
<
|
<
|
||||||
|
|||||||
16
wmake/rules/linux64Clang/c
Normal file
16
wmake/rules/linux64Clang/c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = clang -m64
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||||
21
wmake/rules/linux64Clang/c++
Normal file
21
wmake/rules/linux64Clang/c++
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||||
|
|
||||||
|
CC = clang++ -m64
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-60
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
|
||||||
2
wmake/rules/linux64Clang/c++Debug
Normal file
2
wmake/rules/linux64Clang/c++Debug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
||||||
3
wmake/rules/linux64Clang/c++Opt
Normal file
3
wmake/rules/linux64Clang/c++Opt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#c++DBUG = -O0 -DFULLDEBUG -g
|
||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
2
wmake/rules/linux64Clang/c++Prof
Normal file
2
wmake/rules/linux64Clang/c++Prof
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
||||||
2
wmake/rules/linux64Clang/cDebug
Normal file
2
wmake/rules/linux64Clang/cDebug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
||||||
2
wmake/rules/linux64Clang/cOpt
Normal file
2
wmake/rules/linux64Clang/cOpt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
||||||
2
wmake/rules/linux64Clang/cProf
Normal file
2
wmake/rules/linux64Clang/cProf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
||||||
8
wmake/rules/linux64Clang/general
Normal file
8
wmake/rules/linux64Clang/general
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
||||||
3
wmake/rules/linux64Clang/mplibHPMPI
Normal file
3
wmake/rules/linux64Clang/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||||
16
wmake/rules/linuxClang/c
Normal file
16
wmake/rules/linuxClang/c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = clang -m32
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||||
21
wmake/rules/linuxClang/c++
Normal file
21
wmake/rules/linuxClang/c++
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
CC = clang++ -m32
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-60
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
|
||||||
2
wmake/rules/linuxClang/c++Debug
Normal file
2
wmake/rules/linuxClang/c++Debug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
||||||
2
wmake/rules/linuxClang/c++Opt
Normal file
2
wmake/rules/linuxClang/c++Opt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
2
wmake/rules/linuxClang/c++Prof
Normal file
2
wmake/rules/linuxClang/c++Prof
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
||||||
2
wmake/rules/linuxClang/cDebug
Normal file
2
wmake/rules/linuxClang/cDebug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
||||||
2
wmake/rules/linuxClang/cOpt
Normal file
2
wmake/rules/linuxClang/cOpt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
||||||
2
wmake/rules/linuxClang/cProf
Normal file
2
wmake/rules/linuxClang/cProf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
||||||
9
wmake/rules/linuxClang/general
Normal file
9
wmake/rules/linuxClang/general
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||||
|
LD = ld -melf_i386
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
||||||
3
wmake/rules/linuxClang/mplibHPMPI
Normal file
3
wmake/rules/linuxClang/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_ia32 -lmpi
|
||||||
Reference in New Issue
Block a user