mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: make PDRsetField ground, outer patch names configurable
- previously hard-coded, now adjustable within PDRsetFieldsDict
// Change some predefined patch names
patchNames
{
ground ground;
outer outer;
}
ENH: additions to PDRutils, improve comments
- expose enumerated expansion names and gridControl (PDRblock).
Not commonly needed, but useful to have access when defining
other grid generators
TUT: update PDRsetFieldsDict and tutorials to use "ground"
- remove tutorial references to unused types and legacy obstacles
- use "ground" for the boundary conditions instead of "seaGround".
Consistent with PDRblockMesh
This commit is contained in:
@ -1149,9 +1149,9 @@ static void tail_field
|
|||||||
const UList<PDRpatchDef>& patches
|
const UList<PDRpatchDef>& patches
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// seaGround
|
// ground
|
||||||
{
|
{
|
||||||
os.beginBlock("seaGround");
|
os.beginBlock(pars.groundPatchName);
|
||||||
os.writeKeyword("type") << wall_bc << token::END_STATEMENT << nl;
|
os.writeKeyword("type") << wall_bc << token::END_STATEMENT << nl;
|
||||||
putUniform(os, "value", deflt);
|
putUniform(os, "value", deflt);
|
||||||
os.endBlock();
|
os.endBlock();
|
||||||
@ -1222,13 +1222,14 @@ static void tail_field
|
|||||||
os.endBlock();
|
os.endBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pars.two_d )
|
if (pars.two_d)
|
||||||
{
|
{
|
||||||
os.beginBlock("z_boundaries");
|
os.beginBlock("z_boundaries");
|
||||||
os.writeEntry("type", "empty");
|
os.writeEntry("type", "empty");
|
||||||
os.endBlock();
|
os.endBlock();
|
||||||
}
|
}
|
||||||
if ( pars.outer_orthog )
|
|
||||||
|
if (pars.outer_orthog)
|
||||||
{
|
{
|
||||||
os.beginBlock("outer_inner");
|
os.beginBlock("outer_inner");
|
||||||
os.writeEntry("type", "cyclicAMI");
|
os.writeEntry("type", "cyclicAMI");
|
||||||
@ -1285,9 +1286,10 @@ void write_scalarField
|
|||||||
os << nl;
|
os << nl;
|
||||||
os.beginBlock("boundaryField");
|
os.beginBlock("boundaryField");
|
||||||
|
|
||||||
|
|
||||||
// outer
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
|
|
||||||
os.writeEntry("type", "inletOutlet");
|
os.writeEntry("type", "inletOutlet");
|
||||||
putUniform(os, "inletValue", deflt);
|
putUniform(os, "inletValue", deflt);
|
||||||
@ -1329,7 +1331,8 @@ void write_uniformField
|
|||||||
|
|
||||||
// outer
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
|
|
||||||
if (fieldName == "alphat" || fieldName == "nut")
|
if (fieldName == "alphat" || fieldName == "nut")
|
||||||
{
|
{
|
||||||
// Different b.c. for alphat & nut
|
// Different b.c. for alphat & nut
|
||||||
@ -1377,17 +1380,17 @@ void write_pU_fields
|
|||||||
os << nl;
|
os << nl;
|
||||||
os.beginBlock("boundaryField");
|
os.beginBlock("boundaryField");
|
||||||
|
|
||||||
// "outer"
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
os.writeEntry("type", "inletOutlet");
|
os.writeEntry("type", "inletOutlet");
|
||||||
putUniform(os, "inletValue", vector::zero);
|
putUniform(os, "inletValue", vector::zero);
|
||||||
os.endBlock();
|
os.endBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
// seaGround
|
// ground
|
||||||
{
|
{
|
||||||
os.beginBlock("seaGround");
|
os.beginBlock(pars.groundPatchName);
|
||||||
os.writeEntry("type", "zeroGradient");
|
os.writeEntry("type", "zeroGradient");
|
||||||
os.endBlock();
|
os.endBlock();
|
||||||
}
|
}
|
||||||
@ -1497,9 +1500,10 @@ void write_pU_fields
|
|||||||
os << nl;
|
os << nl;
|
||||||
os.beginBlock("boundaryField");
|
os.beginBlock("boundaryField");
|
||||||
|
|
||||||
// "outer"
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
|
|
||||||
os.writeEntry("type", "waveTransmissive");
|
os.writeEntry("type", "waveTransmissive");
|
||||||
os.writeEntry("gamma", 1.3);
|
os.writeEntry("gamma", 1.3);
|
||||||
os.writeEntry("fieldInf", deflt);
|
os.writeEntry("fieldInf", deflt);
|
||||||
@ -1560,7 +1564,7 @@ void write_symmTensorField
|
|||||||
|
|
||||||
// outer
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
|
|
||||||
os.writeEntry("type", "inletOutlet");
|
os.writeEntry("type", "inletOutlet");
|
||||||
putUniform(os, "inletValue", deflt);
|
putUniform(os, "inletValue", deflt);
|
||||||
@ -1628,7 +1632,7 @@ void write_symmTensorFieldV
|
|||||||
|
|
||||||
// outer
|
// outer
|
||||||
{
|
{
|
||||||
os.beginBlock("outer");
|
os.beginBlock(pars.outerPatchName);
|
||||||
|
|
||||||
os.writeEntry("type", "inletOutlet");
|
os.writeEntry("type", "inletOutlet");
|
||||||
putUniform(os, "inletValue", deflt);
|
putUniform(os, "inletValue", deflt);
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -84,6 +84,20 @@ void Foam::PDRparams::readDefaults(const dictionary& dict)
|
|||||||
dict.readIfPresent("blockageNoCT", blockageNoCT);
|
dict.readIfPresent("blockageNoCT", blockageNoCT);
|
||||||
dict.readIfPresent("scale", scale);
|
dict.readIfPresent("scale", scale);
|
||||||
|
|
||||||
|
|
||||||
|
const dictionary* dictptr;
|
||||||
|
|
||||||
|
groundPatchName = "ground";
|
||||||
|
outerPatchName = "outer";
|
||||||
|
|
||||||
|
if ((dictptr = dict.findDict("patchNames")) != nullptr)
|
||||||
|
{
|
||||||
|
const dictionary& d = *dictptr;
|
||||||
|
|
||||||
|
d.readIfPresent("ground", groundPatchName);
|
||||||
|
d.readIfPresent("outer", outerPatchName);
|
||||||
|
}
|
||||||
|
|
||||||
UPatchBc = "fixedValue;value uniform (0 0 0)";
|
UPatchBc = "fixedValue;value uniform (0 0 0)";
|
||||||
if (dict.readIfPresent("UPatchBc", UPatchBc))
|
if (dict.readIfPresent("UPatchBc", UPatchBc))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016 Shell Research Ltd.
|
Copyright (C) 2016 Shell Research Ltd.
|
||||||
Copyright (C) 2018-2019 OpenCFD Ltd.
|
Copyright (C) 2018-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -62,6 +62,13 @@ public:
|
|||||||
fileName obsfile_dir;
|
fileName obsfile_dir;
|
||||||
wordList obsfile_names;
|
wordList obsfile_names;
|
||||||
word timeName;
|
word timeName;
|
||||||
|
|
||||||
|
//- The name for the "ground" patch
|
||||||
|
word groundPatchName;
|
||||||
|
|
||||||
|
//- The name for the "outer" patch
|
||||||
|
word outerPatchName;
|
||||||
|
|
||||||
string UPatchBc; //!< "fixedValue;value uniform (0 0 0)"
|
string UPatchBc; //!< "fixedValue;value uniform (0 0 0)"
|
||||||
|
|
||||||
bool legacyMeshSpec{false};
|
bool legacyMeshSpec{false};
|
||||||
@ -136,7 +143,7 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Default construct
|
||||||
PDRparams() = default;
|
PDRparams() = default;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -29,9 +29,6 @@ Namespace
|
|||||||
Description
|
Description
|
||||||
Utilities for PDR (eg, for setFields)
|
Utilities for PDR (eg, for setFields)
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
PDRUtils.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef PDRutils_H
|
#ifndef PDRutils_H
|
||||||
@ -48,11 +45,17 @@ namespace Foam
|
|||||||
// Forward Declarations
|
// Forward Declarations
|
||||||
class PDRobstacle;
|
class PDRobstacle;
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace PDRutils
|
namespace PDRutils
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
} // End namespace PDRutils
|
} // End namespace PDRutils
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -264,6 +264,8 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Trim obstacle to ensure it is within the specified bounding box
|
//- Trim obstacle to ensure it is within the specified bounding box
|
||||||
|
//- and return the intersection type.
|
||||||
|
// Returns UNKNOWN for unknown types and invalid bounding boxes
|
||||||
volumeType trim(const boundBox& bb);
|
volumeType trim(const boundBox& bb);
|
||||||
|
|
||||||
//- Surface (points, faces) representation
|
//- Surface (points, faces) representation
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -199,8 +199,8 @@ Foam::scalar Foam::PDRobstacle::readFiles
|
|||||||
obs.dia() -= floatSMALL;
|
obs.dia() -= floatSMALL;
|
||||||
|
|
||||||
|
|
||||||
// Trim against the mesh bounds
|
// Trim against the mesh bounds.
|
||||||
// - ignore if it doesn't overlap
|
// Ignore if it doesn't overlap, or bounds are invalid
|
||||||
const volumeType vt = obs.trim(meshBb);
|
const volumeType vt = obs.trim(meshBb);
|
||||||
|
|
||||||
switch (vt)
|
switch (vt)
|
||||||
@ -288,8 +288,8 @@ Foam::scalar Foam::PDRobstacle::readFiles
|
|||||||
obs.span += point::uniform(shift2);
|
obs.span += point::uniform(shift2);
|
||||||
|
|
||||||
|
|
||||||
// Trim against the mesh bounds
|
// Trim against the mesh bounds.
|
||||||
// - ignore if it doesn't overlap
|
// Ignore if it doesn't overlap, or bounds are invalid
|
||||||
const volumeType vt = obs.trim(meshBb);
|
const volumeType vt = obs.trim(meshBb);
|
||||||
|
|
||||||
switch (vt)
|
switch (vt)
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016 Shell Research Ltd.
|
Copyright (C) 2016 Shell Research Ltd.
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -385,8 +385,8 @@ Foam::scalar Foam::PDRlegacy::readObstacleFiles
|
|||||||
obs.dia() -= floatSMALL;
|
obs.dia() -= floatSMALL;
|
||||||
|
|
||||||
|
|
||||||
// Trim against the mesh bounds
|
// Trim against the mesh bounds.
|
||||||
// - ignore if it doesn't overlap
|
// Ignore if it doesn't overlap, or bounds are invalid
|
||||||
const volumeType vt = obs.trim(meshBb);
|
const volumeType vt = obs.trim(meshBb);
|
||||||
|
|
||||||
switch (vt)
|
switch (vt)
|
||||||
@ -474,8 +474,8 @@ Foam::scalar Foam::PDRlegacy::readObstacleFiles
|
|||||||
obs.span += point::uniform(shift2);
|
obs.span += point::uniform(shift2);
|
||||||
|
|
||||||
|
|
||||||
// Trim against the mesh bounds
|
// Trim against the mesh bounds.
|
||||||
// - ignore if it doesn't overlap
|
// Ignore if it doesn't overlap, or bounds are invalid
|
||||||
const volumeType vt = obs.trim(meshBb);
|
const volumeType vt = obs.trim(meshBb);
|
||||||
|
|
||||||
switch (vt)
|
switch (vt)
|
||||||
|
|||||||
@ -0,0 +1,171 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | www.openfoam.com
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Copyright (C) 2020 OpenCFD Ltd.
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
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/>.
|
||||||
|
|
||||||
|
Class
|
||||||
|
Foam::optionalData
|
||||||
|
|
||||||
|
Description
|
||||||
|
A simplified version of std::optional (c++17), with much simpler
|
||||||
|
construction semantics.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef optionalData_H
|
||||||
|
#define optionalData_H
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
Class optionalData Declaration
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
class optionalData
|
||||||
|
{
|
||||||
|
// Private Data
|
||||||
|
|
||||||
|
//- Validity of the value
|
||||||
|
bool good_;
|
||||||
|
|
||||||
|
//- The value
|
||||||
|
T value_;
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
// Generated Methods
|
||||||
|
|
||||||
|
//- Copy construct
|
||||||
|
optionalData(const optionalData<T>&) = default;
|
||||||
|
|
||||||
|
//- Move construct
|
||||||
|
optionalData(optionalData<T>&&) = default;
|
||||||
|
|
||||||
|
//- Copy assignment
|
||||||
|
optionalData<T>& operator=(const optionalData<T>&) = default;
|
||||||
|
|
||||||
|
//- Move assignment
|
||||||
|
optionalData<T>& operator=(optionalData<T>&&) = default;
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
//- Default construct
|
||||||
|
optionalData()
|
||||||
|
:
|
||||||
|
good_(false),
|
||||||
|
value_()
|
||||||
|
{}
|
||||||
|
|
||||||
|
//- Copy construct from value
|
||||||
|
optionalData(const T& val)
|
||||||
|
:
|
||||||
|
good_(true),
|
||||||
|
value_(val)
|
||||||
|
{}
|
||||||
|
|
||||||
|
//- Move construct from value
|
||||||
|
optionalData(T&& val)
|
||||||
|
:
|
||||||
|
good_(true),
|
||||||
|
value_(std::move(val))
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// Member Functions
|
||||||
|
|
||||||
|
//- True if it has a value
|
||||||
|
bool has_value() const noexcept
|
||||||
|
{
|
||||||
|
return good_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Access to the value
|
||||||
|
T& value() noexcept
|
||||||
|
{
|
||||||
|
return value_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Access to the value
|
||||||
|
const T& value() const noexcept
|
||||||
|
{
|
||||||
|
return value_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Return value or default
|
||||||
|
const T& value_or(const T& deflt) const
|
||||||
|
{
|
||||||
|
return good_ ? value_ : deflt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Member Operators
|
||||||
|
|
||||||
|
//- True if it has a value
|
||||||
|
explicit operator bool() const noexcept
|
||||||
|
{
|
||||||
|
return good_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Access the value
|
||||||
|
const T& operator*() const noexcept
|
||||||
|
{
|
||||||
|
return value_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Access the value
|
||||||
|
T& operator*() noexcept
|
||||||
|
{
|
||||||
|
return value_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Copy assignment from value
|
||||||
|
void operator=(const T& val)
|
||||||
|
{
|
||||||
|
good_ = true;
|
||||||
|
value_ = val;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Move assignment from value
|
||||||
|
void operator=(T&& val)
|
||||||
|
{
|
||||||
|
good_ = true;
|
||||||
|
value_ = std::move(val);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -107,6 +107,9 @@ public:
|
|||||||
EXPAND_RELATIVE //!< Relative expansion ratio
|
EXPAND_RELATIVE //!< Relative expansion ratio
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//- Named enumerations for the expansion type
|
||||||
|
const static Enum<expansionType> expansionNames_;
|
||||||
|
|
||||||
|
|
||||||
// Public Classes
|
// Public Classes
|
||||||
|
|
||||||
@ -176,18 +179,9 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
// Data Types
|
|
||||||
|
|
||||||
//- Named enumerations for the expansion type
|
|
||||||
const static Enum<expansionType> expansionNames_;
|
|
||||||
|
|
||||||
|
|
||||||
// Private Classes
|
|
||||||
|
|
||||||
//- The begin/end nodes for each segment,
|
//- The begin/end nodes for each segment,
|
||||||
//- with divisions and expansion for each segment
|
//- with divisions and expansion for each segment
|
||||||
|
// Not normally used outside of PDRblock
|
||||||
struct gridControl
|
struct gridControl
|
||||||
:
|
:
|
||||||
public scalarList
|
public scalarList
|
||||||
@ -205,14 +199,24 @@ private:
|
|||||||
// \see Foam::gradingDescriptor
|
// \see Foam::gradingDescriptor
|
||||||
gradingDescriptors grading() const;
|
gradingDescriptors grading() const;
|
||||||
|
|
||||||
|
//- Resize lists
|
||||||
|
void resize(label len);
|
||||||
|
|
||||||
//- Add point/divisions/expand to end of list (push_back)
|
//- Add point/divisions/expand to end of list (push_back)
|
||||||
void append(const scalar p, label nDiv, scalar expRatio=1);
|
void append(const scalar p, label nDiv, scalar expRatio=1);
|
||||||
|
|
||||||
//- Add point/divisions/expand to front of list (push_front)
|
//- Add point/divisions/expand to front of list (push_front)
|
||||||
void prepend(const scalar p, label nDiv, scalar expRatio=1);
|
void prepend(const scalar p, label nDiv, scalar expRatio=1);
|
||||||
|
|
||||||
|
//- Write as dictionary contents for specified vector direction
|
||||||
|
void writeDict(Ostream& os, const direction cmpt) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
// Private Classes
|
||||||
|
|
||||||
//- Extracted patch settings
|
//- Extracted patch settings
|
||||||
struct boundaryEntry
|
struct boundaryEntry
|
||||||
{
|
{
|
||||||
|
|||||||
@ -129,6 +129,20 @@ Foam::gradingDescriptors Foam::PDRblock::gridControl::grading() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::PDRblock::gridControl::resize(label len)
|
||||||
|
{
|
||||||
|
// Begin/end nodes for each segment
|
||||||
|
scalarList& knots = *this;
|
||||||
|
|
||||||
|
knots.resize(len, Zero);
|
||||||
|
|
||||||
|
len = Foam::max(0, len-1);
|
||||||
|
|
||||||
|
divisions_.resize(len, Zero);
|
||||||
|
expansion_.resize(len, Zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::PDRblock::gridControl::append
|
void Foam::PDRblock::gridControl::append
|
||||||
(
|
(
|
||||||
const scalar p,
|
const scalar p,
|
||||||
@ -215,6 +229,37 @@ void Foam::PDRblock::gridControl::prepend
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::PDRblock::gridControl::writeDict
|
||||||
|
(
|
||||||
|
Ostream& os,
|
||||||
|
const direction cmpt
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
if (cmpt < vector::nComponents)
|
||||||
|
{
|
||||||
|
os.beginBlock(vector::componentNames[cmpt]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const scalarList& knots = *this;
|
||||||
|
|
||||||
|
os << indent << "points "
|
||||||
|
<< flatOutput(knots) << token::END_STATEMENT << nl;
|
||||||
|
|
||||||
|
os << indent << "nCells "
|
||||||
|
<< flatOutput(divisions_) << token::END_STATEMENT << nl;
|
||||||
|
|
||||||
|
os << indent << "ratios "
|
||||||
|
<< flatOutput(expansion_) << token::END_STATEMENT << nl;
|
||||||
|
|
||||||
|
if (cmpt < vector::nComponents)
|
||||||
|
{
|
||||||
|
os.endBlock();
|
||||||
|
}
|
||||||
|
os << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::scalarMinMax Foam::PDRblock::location::edgeLimits() const
|
Foam::scalarMinMax Foam::PDRblock::location::edgeLimits() const
|
||||||
{
|
{
|
||||||
scalarMinMax limits;
|
scalarMinMax limits;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -28,7 +28,7 @@ boundaryField
|
|||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -28,7 +28,7 @@ boundaryField
|
|||||||
lInf 5;
|
lInf 5;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -21,18 +21,19 @@ obsFileDir "<case>/geometry";
|
|||||||
|
|
||||||
obsFileNames (obstaclesDict);
|
obsFileNames (obstaclesDict);
|
||||||
|
|
||||||
// legacyObsSpec true;
|
|
||||||
//
|
|
||||||
// obsFileNames (position.obs base.obs);
|
|
||||||
|
|
||||||
// Some parameters for PDRfitMesh are read from this file, including
|
// ------------------
|
||||||
|
// PDRfitMesh
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// Some parameters for PDRfitMesh are read from this file,
|
||||||
|
// including the following
|
||||||
|
|
||||||
|
// Mandatory (here or in PDRfitMeshDict)
|
||||||
cellWidth 0.22;
|
cellWidth 0.22;
|
||||||
|
|
||||||
outer (20 0);
|
// Optional
|
||||||
|
cellWidthFactor 1.0;
|
||||||
|
|
||||||
outerCombFac 0;
|
|
||||||
|
|
||||||
sea_ground 0.0;
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type compressible::epsilonWallFunction;
|
type compressible::epsilonWallFunction;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -26,7 +26,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type compressible::kqRWallFunction;
|
type compressible::kqRWallFunction;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -28,7 +28,7 @@ boundaryField
|
|||||||
lInf 5;
|
lInf 5;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
seaGround
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2006 |
|
| \\ / O peration | Version: v2012 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -21,18 +21,31 @@ obsFileDir "<case>/geometry";
|
|||||||
|
|
||||||
obsFileNames (obstaclesDict);
|
obsFileNames (obstaclesDict);
|
||||||
|
|
||||||
// legacyObsSpec true;
|
|
||||||
//
|
|
||||||
// obsFileNames (position.obs base.obs);
|
|
||||||
|
|
||||||
// Some parameters for PDRfitMesh are read from this file, including
|
// ------------------
|
||||||
|
// PDRfitMesh
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// Some parameters for PDRfitMesh are read from this file,
|
||||||
|
// including the following
|
||||||
|
|
||||||
|
// Mandatory (here or in PDRfitMeshDict)
|
||||||
cellWidth 0.22;
|
cellWidth 0.22;
|
||||||
|
|
||||||
outer (20 0);
|
// Optional
|
||||||
|
cellWidthFactor 1.0;
|
||||||
|
|
||||||
outerCombFac 0;
|
|
||||||
|
|
||||||
sea_ground 0.0;
|
// ------------------
|
||||||
|
// Advanced
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// Change some predefined patch names
|
||||||
|
patchNames
|
||||||
|
{
|
||||||
|
ground ground;
|
||||||
|
outer outer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user