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
Rémi Cailletaud
yade
Commits
cbff7d67
Commit
cbff7d67
authored
Apr 23, 2012
by
Christian Jakob
Committed by
Anton Gladky
Apr 23, 2012
Browse files
make fusionDetection and isBroken flag compatible
parent
4c78e0fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity.cpp
View file @
cbff7d67
...
...
@@ -252,27 +252,39 @@ void Law2_ScGeom_CapillaryPhys_Capillarity::checkFusion()
if
(
!
hertzOn
)
{
cundallInteractionPhysics1
=
YADE_CAST
<
CapillaryPhys
*>
((
*
firstMeniscus
)
->
phys
.
get
());
if
(
i
==
(
*
firstMeniscus
)
->
getId1
())
angle1
=
cundallInteractionPhysics1
->
Delta1
;
//get angle of meniscus1 on body i
else
angle1
=
cundallInteractionPhysics1
->
Delta2
;
if
(
!
cundallInteractionPhysics1
->
isBroken
)
{
if
(
i
==
(
*
firstMeniscus
)
->
getId1
())
angle1
=
cundallInteractionPhysics1
->
Delta1
;
//get angle of meniscus1 on body i
else
angle1
=
cundallInteractionPhysics1
->
Delta2
;
}
}
else
{
mindlinInteractionPhysics1
=
YADE_CAST
<
MindlinCapillaryPhys
*>
((
*
firstMeniscus
)
->
phys
.
get
());
if
(
i
==
(
*
firstMeniscus
)
->
getId1
())
angle1
=
mindlinInteractionPhysics1
->
Delta1
;
//get angle of meniscus1 on body i
else
angle1
=
mindlinInteractionPhysics1
->
Delta2
;
if
(
!
mindlinInteractionPhysics1
->
isBroken
)
{
if
(
i
==
(
*
firstMeniscus
)
->
getId1
())
angle1
=
mindlinInteractionPhysics1
->
Delta1
;
//get angle of meniscus1 on body i
else
angle1
=
mindlinInteractionPhysics1
->
Delta2
;
}
}
for
(
;
currentMeniscus
!=
lastMeniscus
;
++
currentMeniscus
)
{
//... CHECK FUSION WITH ALL OTHER MENISCII ON THE BODY
if
(
!
hertzOn
)
{
cundallInteractionPhysics2
=
YADE_CAST
<
CapillaryPhys
*>
((
*
currentMeniscus
)
->
phys
.
get
());
if
(
i
==
(
*
currentMeniscus
)
->
getId1
())
angle2
=
cundallInteractionPhysics2
->
Delta1
;
//get angle of meniscus2 on body i
else
angle2
=
cundallInteractionPhysics2
->
Delta2
;
if
(
!
cundallInteractionPhysics2
->
isBroken
)
{
if
(
i
==
(
*
currentMeniscus
)
->
getId1
())
angle2
=
cundallInteractionPhysics2
->
Delta1
;
//get angle of meniscus2 on body i
else
angle2
=
cundallInteractionPhysics2
->
Delta2
;
}
}
else
{
mindlinInteractionPhysics2
=
YADE_CAST
<
MindlinCapillaryPhys
*>
((
*
currentMeniscus
)
->
phys
.
get
());
if
(
i
==
(
*
currentMeniscus
)
->
getId1
())
angle2
=
mindlinInteractionPhysics2
->
Delta1
;
//get angle of meniscus2 on body i
else
angle2
=
mindlinInteractionPhysics2
->
Delta2
;
if
(
!
mindlinInteractionPhysics2
->
isBroken
)
{
if
(
i
==
(
*
currentMeniscus
)
->
getId1
())
angle2
=
mindlinInteractionPhysics2
->
Delta1
;
//get angle of meniscus2 on body i
else
angle2
=
mindlinInteractionPhysics2
->
Delta2
;
}
}
if
(
angle1
==
0
||
angle2
==
0
)
cerr
<<
"THIS SHOULD NOT HAPPEN!!"
<<
endl
;
...
...
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