Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f55b15e3
Commit
f55b15e3
authored
Nov 20, 2016
by
Mark Olesen
Browse files
Merge branch 'master' into 'develop'
Merge master changes/bugfixes into develop branch See merge request
!78
parents
9b66285c
4b4e9122
Changes
13
Hide whitespace changes
Inline
Side-by-side
src/TurbulenceModels/turbulenceModels/LES/LESdeltas/IDDESDelta/IDDESDelta.H
View file @
f55b15e3
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -26,8 +26,8 @@ Class
Description
IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model)
The min and max delta are calculated using the
doubl
e distance of
the min or
max from the face centre to
the cell
centre
.
The min and max delta are calculated using the
face to fac
e distance of
the cell.
SourceFiles
IDDESDelta.C
...
...
src/finiteVolume/cfdTools/general/porosityModel/porosityModel/porosityModel.C
View file @
f55b15e3
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -122,6 +122,37 @@ Foam::porosityModel::porosityModel
<<
"cannot find porous cellZone "
<<
zoneName_
<<
exit
(
FatalError
);
}
Info
<<
incrIndent
<<
indent
<<
coordSys_
<<
decrIndent
<<
endl
;
const
pointField
&
points
=
mesh_
.
points
();
const
cellList
&
cells
=
mesh_
.
cells
();
const
faceList
&
faces
=
mesh_
.
faces
();
DynamicList
<
point
>
localPoints
;
forAll
(
cellZoneIDs_
,
zoneI
)
{
const
cellZone
&
cZone
=
mesh_
.
cellZones
()[
cellZoneIDs_
[
zoneI
]];
localPoints
.
setCapacity
(
10
*
cells
.
size
());
forAll
(
cZone
,
i
)
{
const
label
cellI
=
cZone
[
i
];
const
cell
&
c
=
mesh_
.
cells
()[
cellI
];
const
pointField
cellPoints
(
c
.
points
(
faces
,
points
));
forAll
(
cellPoints
,
pointI
)
{
const
point
&
pt
=
cellPoints
[
pointI
];
localPoints
.
append
(
coordSys_
.
localPosition
(
pt
));
}
}
boundBox
bb
(
localPoints
,
true
);
Info
<<
" local bounds: "
<<
bb
<<
endl
;
localPoints
.
clear
();
}
}
...
...
src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion.C
View file @
f55b15e3
...
...
@@ -170,7 +170,8 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion
momentOfInertia_
(
sDoFRBM
.
momentOfInertia_
),
aRelax_
(
sDoFRBM
.
aRelax_
),
aDamp_
(
sDoFRBM
.
aDamp_
),
report_
(
sDoFRBM
.
report_
)
report_
(
sDoFRBM
.
report_
),
solver_
(
sDoFRBM
.
solver_
,
false
)
{}
...
...
src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion.H
View file @
f55b15e3
...
...
@@ -52,6 +52,7 @@ SourceFiles
#include "sixDoFRigidBodyMotionConstraint.H"
#include "Tuple2.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
...
...
src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/sixDoFRigidBodyMotionIO.C
View file @
f55b15e3
...
...
@@ -25,6 +25,7 @@ License
#include "sixDoFRigidBodyMotion.H"
#include "IOstreams.H"
#include "sixDoFSolver.H"
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
...
...
@@ -112,6 +113,12 @@ void Foam::sixDoFRigidBodyMotion::write(Ostream& os) const
os
<<
decrIndent
<<
indent
<<
token
::
END_BLOCK
<<
nl
;
}
if
(
!
solver_
.
empty
())
{
os
<<
indent
<<
"solver"
;
solver_
->
write
(
os
);
}
}
...
...
src/sixDoFRigidBodyMotion/sixDoFSolvers/CrankNicolson/CrankNicolson.C
View file @
f55b15e3
...
...
@@ -46,7 +46,7 @@ Foam::sixDoFSolvers::CrankNicolson::CrankNicolson
sixDoFRigidBodyMotion
&
body
)
:
sixDoFSolver
(
body
),
sixDoFSolver
(
dict
,
body
),
aoc_
(
dict
.
lookupOrDefault
<
scalar
>
(
"aoc"
,
0
.
5
)),
voc_
(
dict
.
lookupOrDefault
<
scalar
>
(
"voc"
,
0
.
5
))
{}
...
...
@@ -90,5 +90,4 @@ void Foam::sixDoFSolvers::CrankNicolson::solve
Q
()
=
Qpi
.
first
();
}
// ************************************************************************* //
src/sixDoFRigidBodyMotion/sixDoFSolvers/CrankNicolson/CrankNicolson.H
View file @
f55b15e3
...
...
@@ -98,6 +98,15 @@ public:
sixDoFRigidBodyMotion
&
body
);
//- Construct and return a clone
virtual
autoPtr
<
sixDoFSolver
>
clone
()
const
{
return
autoPtr
<
sixDoFSolver
>
(
new
CrankNicolson
(
dict_
,
body_
)
);
}
//- Destructor
virtual
~
CrankNicolson
();
...
...
src/sixDoFRigidBodyMotion/sixDoFSolvers/Newmark/Newmark.C
View file @
f55b15e3
...
...
@@ -46,7 +46,7 @@ Foam::sixDoFSolvers::Newmark::Newmark
sixDoFRigidBodyMotion
&
body
)
:
sixDoFSolver
(
body
),
sixDoFSolver
(
dict
,
body
),
gamma_
(
dict
.
lookupOrDefault
<
scalar
>
(
"gamma"
,
0
.
5
)),
beta_
(
...
...
@@ -111,5 +111,4 @@ void Foam::sixDoFSolvers::Newmark::solve
Q
()
=
Qpi
.
first
();
}
// ************************************************************************* //
src/sixDoFRigidBodyMotion/sixDoFSolvers/Newmark/Newmark.H
View file @
f55b15e3
...
...
@@ -96,6 +96,15 @@ public:
sixDoFRigidBodyMotion
&
body
);
//- Construct and return a clone
virtual
autoPtr
<
sixDoFSolver
>
clone
()
const
{
return
autoPtr
<
sixDoFSolver
>
(
new
Newmark
(
dict_
,
body_
)
);
}
//- Destructor
virtual
~
Newmark
();
...
...
src/sixDoFRigidBodyMotion/sixDoFSolvers/sixDoFSolver/sixDoFSolver.C
View file @
f55b15e3
...
...
@@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "sixDoFSolver.H"
#include "IOstreams.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...
...
@@ -36,12 +37,22 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam
::
sixDoFSolver
::
sixDoFSolver
(
sixDoFRigidBodyMotion
&
body
)
Foam
::
sixDoFSolver
::
sixDoFSolver
(
const
dictionary
&
dict
,
sixDoFRigidBodyMotion
&
body
)
:
body_
(
body
)
body_
(
body
),
dict_
(
dict
)
{}
void
Foam
::
sixDoFSolver
::
write
(
Ostream
&
os
)
const
{
os
<<
dict_
;
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam
::
sixDoFSolver
::~
sixDoFSolver
()
...
...
src/sixDoFRigidBodyMotion/sixDoFSolvers/sixDoFSolver/sixDoFSolver.H
View file @
f55b15e3
...
...
@@ -59,6 +59,9 @@ protected:
//- The rigid body
sixDoFRigidBodyMotion
&
body_
;
//- Model dictionary
dictionary
dict_
;
// Protected member functions
...
...
@@ -148,7 +151,10 @@ public:
// Constructors
// Construct for given body
sixDoFSolver
(
sixDoFRigidBodyMotion
&
body
);
sixDoFSolver
(
const
dictionary
&
dict
,
sixDoFRigidBodyMotion
&
body
);
//- Construct and return a clone
virtual
autoPtr
<
sixDoFSolver
>
clone
()
const
=
0
;
//- Destructor
...
...
@@ -175,6 +181,10 @@ public:
scalar
deltaT
,
scalar
deltaT0
)
=
0
;
//- Write
void
write
(
Ostream
&
)
const
;
};
...
...
src/sixDoFRigidBodyMotion/sixDoFSolvers/symplectic/symplectic.C
View file @
f55b15e3
...
...
@@ -46,7 +46,7 @@ Foam::sixDoFSolvers::symplectic::symplectic
sixDoFRigidBodyMotion
&
body
)
:
sixDoFSolver
(
body
)
sixDoFSolver
(
dict
,
body
)
{}
...
...
@@ -90,5 +90,4 @@ void Foam::sixDoFSolvers::symplectic::solve
pi
()
+=
rConstraints
()
&
aDamp
()
*
0
.
5
*
deltaT
*
tau
();
}
// ************************************************************************* //
src/sixDoFRigidBodyMotion/sixDoFSolvers/symplectic/symplectic.H
View file @
f55b15e3
...
...
@@ -95,6 +95,15 @@ public:
sixDoFRigidBodyMotion
&
body
);
//- Construct and return a clone
virtual
autoPtr
<
sixDoFSolver
>
clone
()
const
{
return
autoPtr
<
sixDoFSolver
>
(
new
symplectic
(
dict_
,
body_
)
);
}
//- Destructor
virtual
~
symplectic
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment