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
539fe4ce
Commit
539fe4ce
authored
Jan 18, 2021
by
Sebastian Eibl
Browse files
update
parent
2980555d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesa_pd/kernel/VBondModel/AnisotropicVDWContact.h
View file @
539fe4ce
...
...
@@ -50,9 +50,9 @@ class AnisotropicVDWContact
{
public:
template
<
typename
Accessor
>
real_t
operator
()(
const
size_t
p_idx1
,
const
size_t
p_idx2
,
Accessor
&
ac
);
void
operator
()(
const
size_t
p_idx1
,
const
size_t
p_idx2
,
Accessor
&
ac
);
static
constexpr
real_t
eps_
=
0.03733
_r
;
static
constexpr
real_t
A_
=
0.0223
_r
;
...
...
@@ -89,9 +89,9 @@ public:
*/
template
<
typename
Accessor
>
inline
real_t
AnisotropicVDWContact
::
operator
()(
const
size_t
p_idx1
,
const
size_t
p_idx2
,
Accessor
&
ac
)
void
AnisotropicVDWContact
::
operator
()(
const
size_t
p_idx1
,
const
size_t
p_idx2
,
Accessor
&
ac
)
{
//===Adaptation of PFC5 vdW contact model implementation====
...
...
@@ -297,6 +297,7 @@ real_t AnisotropicVDWContact::operator()(const size_t p_idx1,
real_t
W_u
=
1
_r
;
real_t
W_u_L
=
0
_r
;
real_t
W_u_LL
=
0
_r
;
WALBERLA_UNUSED
(
W_u_LL
);
// Cubic cutoff function 3T->4T (hardcoded since we do not need to mess w these parameters)
constexpr
auto
Q1_
=
-
80.0
_r
;
...
...
@@ -341,8 +342,10 @@ real_t AnisotropicVDWContact::operator()(const size_t p_idx1,
real_t
GA
=
1
_r
;
real_t
GA_L
=
0
_r
;
real_t
GA_LL
=
0
_r
;
WALBERLA_UNUSED
(
GA_LL
);
real_t
GA_G
=
0
_r
;
real_t
GA_GG
=
0
_r
;
WALBERLA_UNUSED
(
GA_GG
);
if
(
std
::
abs
(
sin_gamma
)
>
TOL
)
{
GA
=
1
_r
+
W_ga
*
(
1
_r
-
cos_2gamma
);
...
...
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