Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Schruff
waLBerla
Commits
fd1406eb
Commit
fd1406eb
authored
Feb 16, 2018
by
Sebastian Eibl
Browse files
output material parameters
parent
059bac46
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pe/Materials.cpp
View file @
fd1406eb
...
...
@@ -311,5 +311,21 @@ std::vector<MaterialID> Material::findPrefix( const std::string& prefix )
}
//*************************************************************************************************
std
::
string
Material
::
toString
(
const
MaterialID
&
v
)
{
std
::
stringstream
ss
;
ss
<<
"Material "
<<
Material
::
getName
(
v
)
<<
"
\n
"
<<
" density = "
<<
Material
::
getDensity
(
v
)
<<
"
\n
"
<<
" cor = "
<<
Material
::
getRestitution
(
v
)
<<
"
\n
"
<<
" csf = "
<<
Material
::
getStaticFriction
(
v
)
<<
"
\n
"
<<
" cdf = "
<<
Material
::
getDynamicFriction
(
v
)
<<
"
\n
"
<<
" poisson = "
<<
Material
::
getPoissonRatio
(
v
)
<<
"
\n
"
<<
" young = "
<<
Material
::
getYoungModulus
(
v
)
<<
"
\n
"
<<
" stiffness = "
<<
Material
::
getStiffness
(
v
)
<<
"
\n
"
<<
" dampingN = "
<<
Material
::
getDampingN
(
v
)
<<
"
\n
"
<<
" dampingT = "
<<
Material
::
getDampingT
(
v
);
return
ss
.
str
();
}
}
// namespace pe
}
// namespace walberla
src/pe/Materials.h
View file @
fd1406eb
...
...
@@ -15,7 +15,6 @@
//
//! \file Materials.h
//! \author Klaus Iglberger
//! \author Sebastian Eibl <sebastian.eibl@fau.de>
//! \brief Header file for materials
//
//======================================================================================================================
...
...
@@ -27,6 +26,7 @@
// Includes
//*************************************************************************************************
#include <iostream>
#include <string>
#include <vector>
#include <pe/Types.h>
...
...
@@ -150,6 +150,7 @@ public:
static
inline
real_t
getDampingN
(
MaterialID
material1
,
MaterialID
material2
);
static
inline
real_t
getDampingT
(
MaterialID
material
);
static
inline
real_t
getDampingT
(
MaterialID
material1
,
MaterialID
material2
);
static
std
::
string
toString
(
const
MaterialID
&
v
);
//@}
//**********************************************************************************************
...
...
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