Bug in Calculating getSaturation in TwoPhaseFlow Engine
hi,
I had a problem using "TwoPhaseFlow Engine" in 'Yadedaily 2018.02b-
The value of Saturation Degree 'getSaturation(
According to the formula:
Porosity=
VoidVolumes=
The volume of Voids containing the air and Water.
We have blocked the way out water by 'bndCondIsPress
And only the volume of air in the ٰVoid decreases by increasing loading.
According to the formula:
DegreeOfSaturat
while Oedometer loading:
VolumeOfWater > Constant
VolumeOfVoids > Decresed
So DegreeOfSaturation must be Increased that The same is true with the laboratory results and the literature
but in TwoPhaseFlow Engine Degree of Saturation No changed while loading!!!
-------
CODE:
import matplotlib; matplotlib.
from yade import pack
import pylab
from numpy import *
compFricDegree = 30.0
confiningS=-1e5
psdSizes,
sp=pack.
mn,mx=Vector3(
sp.makeCloud(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
O.bodies.
triax=TriaxialS
internalCompac
goal1=confiningS,
goal2=confiningS,
goal3=confiningS,
max_vel=10,
label="triax"
)
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
triax,
NewtonIntegrat
TwoPhaseFlowEn
]
while 1:
O.run(1000,True)
unb=unbalance
if unb<0.01 and abs(triax.
break
#######
## Drainage Test under oedometer conditions #
#######
triax.stressMask=2
triax.goal1=
goalTop=
triax.goal2=goalTop
triax.wall_
meanDiameter=
unsat.bndCondIs
unsat.bndCondVa
unsat.isPhaseTr
unsat.initializ
unsat.surfaceTe
for pg in arange(
unsat.
unsat.invasion()
unsat.
for b in O.bodies:
O.forces.
while 1:
O.run(
unb=
if unb<0.01:
break
print 'Drainage:
print '------
## Oedometer conditions
unsat.bndCondIs
triax.stressMask=2
triax.goal1=
goalTop=
triax.goal2=goalTop
triax.wall_
loadingMatrix=
for i in arange(
triax.
O.run(2000,True)
print 'Load:'
-------
-------
-------
end of code
-------
The results I see is wrong:
Load: -500000.0 Sw: 0.268726543553 VoidVolume: 436.590507582
Load: -1000000.0 Sw: 0.268726543553 VoidVolume: 433.836864791
Load: -1500000.0 Sw: 0.268726543553 VoidVolume: 431.014178921
Load: -2000000.0 Sw: 0.268726543553 VoidVolume: 428.158278656
Load: -2500000.0 Sw: 0.268726543553 VoidVolume: 425.283191863
Load: -3000000.0 Sw: 0.268726543553 VoidVolume: 422.394919453
-------
It is observed that due to the closure of the water outlet, the volume of Voids decreased but the amount of saturation remained constant during loading, which is incorrect.
It seems that when loading and changing the sample size, the effect of the saturation change is not calculated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Saeed
Can you help with this problem?
Provide an answer of your own, or ask Saeed for more information if necessary.