Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
df3a560d
Commit
df3a560d
authored
Sep 19, 2018
by
mattijs
Browse files
ENH: surfaceInertia: print info for use in RBD. See also
#1014
.
parent
0b95bb00
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/surface/surfaceInertia/surfaceInertia.C
View file @
df3a560d
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2015
-2018
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -384,6 +384,26 @@ int main(int argc, char *argv[])
<<
" momentOfInertia "
<<
eVal
<<
token
::
END_STATEMENT
<<
nl
<<
" orientation "
<<
eVec
.
T
()
<<
token
::
END_STATEMENT
<<
endl
;
// Get inertia as a symmetric tensor
const
symmTensor
st
(
eVal
.
xx
(),
eVal
.
xy
(),
eVal
.
xz
(),
eVal
.
yy
(),
eVal
.
yz
(),
eVal
.
zz
()
);
Info
<<
nl
<<
"Entries for rigidBodyDynamics dynamicMeshDict:"
<<
nl
<<
" mass "
<<
m
<<
token
::
END_STATEMENT
<<
nl
<<
" centreOfMass "
<<
cM
<<
token
::
END_STATEMENT
<<
nl
<<
" inertia "
<<
st
<<
token
::
END_STATEMENT
<<
nl
<<
endl
;
}
if
(
calcAroundRefPt
)
...
...
Write
Preview
Supports
Markdown
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