mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -227,7 +227,11 @@ bool setFaceFieldType
|
|||||||
|
|
||||||
// Override
|
// Override
|
||||||
bool hasWarned = false;
|
bool hasWarned = false;
|
||||||
labelList nChanged(field.boundaryField().size(), 0);
|
labelList nChanged
|
||||||
|
(
|
||||||
|
returnReduce(field.boundaryField().size(), maxOp<label>()),
|
||||||
|
0
|
||||||
|
);
|
||||||
forAll(selectedFaces, i)
|
forAll(selectedFaces, i)
|
||||||
{
|
{
|
||||||
label facei = selectedFaces[i];
|
label facei = selectedFaces[i];
|
||||||
|
|||||||
@ -117,11 +117,12 @@ bool Foam::entry::New(dictionary& parentDict, Istream& is)
|
|||||||
if (keyword.size() > 2 && keyword[1] == token::BEGIN_BLOCK)
|
if (keyword.size() > 2 && keyword[1] == token::BEGIN_BLOCK)
|
||||||
{
|
{
|
||||||
// Recursive substitution mode. Replace between {} with
|
// Recursive substitution mode. Replace between {} with
|
||||||
// expansion.
|
// expansion and then let standard variable expansion deal
|
||||||
|
// with rest.
|
||||||
string s(keyword(2, keyword.size()-3));
|
string s(keyword(2, keyword.size()-3));
|
||||||
// Substitute dictionary and environment variables. Allow
|
// Substitute dictionary and environment variables. Do not allow
|
||||||
// empty substitutions.
|
// empty substitutions.
|
||||||
stringOps::inplaceExpand(s, parentDict, true, true);
|
stringOps::inplaceExpand(s, parentDict, true, false);
|
||||||
keyword.std::string::replace(1, keyword.size()-1, s);
|
keyword.std::string::replace(1, keyword.size()-1, s);
|
||||||
}
|
}
|
||||||
parentDict.substituteScopedKeyword(keyword);
|
parentDict.substituteScopedKeyword(keyword);
|
||||||
|
|||||||
@ -47,13 +47,11 @@ bool Foam::primitiveEntry::expandVariable
|
|||||||
{
|
{
|
||||||
if (w.size() > 2 && w[0] == '$' && w[1] == token::BEGIN_BLOCK)
|
if (w.size() > 2 && w[0] == '$' && w[1] == token::BEGIN_BLOCK)
|
||||||
{
|
{
|
||||||
// Recursive substitution mode. Replace between {} with
|
// Recursive substitution mode. Replace between {} with expansion.
|
||||||
// expansion.
|
|
||||||
string s(w(2, w.size()-3));
|
string s(w(2, w.size()-3));
|
||||||
// Substitute dictionary and environment variables. Allow
|
// Substitute dictionary and environment variables. Do not allow
|
||||||
// empty substitutions.
|
// empty substitutions.
|
||||||
stringOps::inplaceExpand(s, dict, true, true);
|
stringOps::inplaceExpand(s, dict, true, false);
|
||||||
|
|
||||||
string newW(w);
|
string newW(w);
|
||||||
newW.std::string::replace(1, newW.size()-1, s);
|
newW.std::string::replace(1, newW.size()-1, s);
|
||||||
|
|
||||||
@ -83,6 +81,15 @@ bool Foam::primitiveEntry::expandVariable
|
|||||||
|
|
||||||
if (envStr.empty())
|
if (envStr.empty())
|
||||||
{
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"primitiveEntry::expandVariable"
|
||||||
|
"(const string&, const dictionary&",
|
||||||
|
dict
|
||||||
|
) << "Illegal dictionary entry or environment variable name "
|
||||||
|
<< varName << endl << "Valid dictionary entries are "
|
||||||
|
<< dict.toc() << exit(FatalIOError);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
append(tokenList(IStringStream('(' + envStr + ')')()));
|
append(tokenList(IStringStream('(' + envStr + ')')()));
|
||||||
|
|||||||
@ -312,7 +312,7 @@ Foam::string Foam::stringOps::getVariable
|
|||||||
" const bool\n"
|
" const bool\n"
|
||||||
")\n",
|
")\n",
|
||||||
dict
|
dict
|
||||||
) << "Cannot find environment variable "
|
) << "Cannot find dictionary variable "
|
||||||
<< name << exit(FatalIOError);
|
<< name << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,13 +23,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform 265;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform 265;
|
value uniform 265;
|
||||||
@ -43,8 +37,7 @@ boundaryField
|
|||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
twoFridgeFreezers_herring_1
|
||||||
{
|
{
|
||||||
type fixedValue;
|
$twoFridgeFreezers_seal_0;
|
||||||
value uniform 303;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,25 +23,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform (0 0 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform (0 0 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform (0 0 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
|
|||||||
@ -1,53 +0,0 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \\ / O peration | Version: dev |
|
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class volScalarField;
|
|
||||||
location "0";
|
|
||||||
object alphat;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
dimensions [1 -1 -1 0 0 0 0];
|
|
||||||
|
|
||||||
internalField uniform 0;
|
|
||||||
|
|
||||||
boundaryField
|
|
||||||
{
|
|
||||||
//- Set patchGroups for constraint patches
|
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
|
||||||
|
|
||||||
ground
|
|
||||||
{
|
|
||||||
type alphatWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type alphatWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type alphatWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
|
||||||
type alphatWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -24,25 +24,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type epsilonWallFunction;
|
|
||||||
value uniform 0.01;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type epsilonWallFunction;
|
|
||||||
value uniform 0.01;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type epsilonWallFunction;
|
|
||||||
value uniform 0.01;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 0.01;
|
value uniform 0.01;
|
||||||
|
|||||||
@ -24,25 +24,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value uniform 0.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value uniform 0.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value uniform 0.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 0.1;
|
value uniform 0.1;
|
||||||
|
|||||||
@ -24,28 +24,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type kappatJayatillekeWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type kappatJayatillekeWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type kappatJayatillekeWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type kappatJayatillekeWallFunction;
|
type kappatJayatillekeWallFunction;
|
||||||
Prt 0.85;
|
Prt 0.85;
|
||||||
|
|||||||
@ -24,25 +24,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type nutkWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type nutkWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type nutkWallFunction;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,25 +23,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -23,28 +23,7 @@ boundaryField
|
|||||||
//- Set patchGroups for constraint patches
|
//- Set patchGroups for constraint patches
|
||||||
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
ground
|
wall
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
rho rhok;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
igloo_region0
|
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
rho rhok;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
rho rhok;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
|
||||||
{
|
{
|
||||||
type fixedFluxPressure;
|
type fixedFluxPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
|
|||||||
@ -78,7 +78,8 @@ boundary
|
|||||||
|
|
||||||
ground
|
ground
|
||||||
{
|
{
|
||||||
type wall;
|
type wall;
|
||||||
|
inGroups (wall);
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(0 3 2 1)
|
(0 3 2 1)
|
||||||
|
|||||||
@ -15,6 +15,13 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"libincompressibleTurbulenceModel.so"
|
||||||
|
"libincompressibleRASModels.so"
|
||||||
|
"libincompressibleTransportModels.so"
|
||||||
|
);
|
||||||
|
|
||||||
application buoyantBoussinesqSimpleFoam;
|
application buoyantBoussinesqSimpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|||||||
@ -15,9 +15,9 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
numberOfSubdomains 6;
|
numberOfSubdomains 2;
|
||||||
|
|
||||||
method hierarchical;
|
method scotch;
|
||||||
|
|
||||||
simpleCoeffs
|
simpleCoeffs
|
||||||
{
|
{
|
||||||
|
|||||||
@ -148,12 +148,28 @@ castellatedMeshControls
|
|||||||
level (3 3);
|
level (3 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Optional specification of patch type (default is wall). No
|
||||||
|
// constraint types (cyclic, symmetry) etc. are allowed.
|
||||||
|
patchInfo
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
inGroups (wall);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
"iglo.*"
|
"iglo.*"
|
||||||
{
|
{
|
||||||
// Surface-wise min and max refinement level
|
// Surface-wise min and max refinement level
|
||||||
level (1 1);
|
level (1 1);
|
||||||
|
|
||||||
|
// Optional specification of patch type (default is wall). No
|
||||||
|
// constraint types (cyclic, symmetry) etc. are allowed.
|
||||||
|
patchInfo
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
inGroups (wall);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user