Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arash Partow
waLBerla
Commits
709a4d4a
Commit
709a4d4a
authored
Jan 21, 2021
by
Sebastian Eibl
Browse files
update
parent
125a7e14
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/benchmarks/VBondModel/Accessor.h
View file @
709a4d4a
...
...
@@ -35,9 +35,9 @@ public:
:
ParticleAccessor
(
ps
)
{}
auto
getInvMass
(
const
size_t
p_idx
)
const
{
return
1
_r
/
kernel
::
VBondModel
::
mass_T
;}
constexpr
auto
getInvMass
(
const
size_t
/*
p_idx
*/
)
const
{
return
1
_r
/
kernel
::
VBondModel
::
mass_T
;}
const
auto
&
getInvInertiaBF
(
const
size_t
p_idx
)
const
{
return
invI
;}
const
expr
auto
&
getInvInertiaBF
(
const
size_t
/*
p_idx
*/
)
const
{
return
invI
;}
private:
// - sphere : I = (2/5)*mass*radius^2
static
constexpr
auto
Ia
=
0.4
_r
*
kernel
::
VBondModel
::
mass_T
*
kernel
::
VBondModel
::
inner_radius
*
kernel
::
VBondModel
::
inner_radius
;
...
...
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