flow.nCells() != "cell number" recorded by flow.saveVtk()
Hello,
One question for FlowEngine and DFNFlowEngine: why the flow.nCells() != "cell number" recorded by flow.saveVtk()?
I would like to record the Ids of initial fractured cells and then impose different pressures within them, but I find that the ids (and vertices) are not consistent given by these two ways.
Below is an example.
Thank you in advance for your help.
Best regards,
Lingran
from yade import pack, ymport
### material
def sphereMat(): return JCFpmMat(
def wallMat(): return JCFpmMat(
### bodies
mn,mx=Vector3(
O.bodies.
sps=SpherePack()
sp=pack.
sp.toSimulation
dim=utils.
xinf=dim[0][0]
xsup=dim[1][0]
X=xsup-xinf
yinf=dim[0][1]
ysup=dim[1][1]
Y=ysup-yinf
zinf=dim[0][2]
zsup=dim[1][2]
Z=zsup-zinf
### engines
flow=FlowEngine(
### choose solver to use (0: Gauss Seidel, 1: Taucs, 2: Pardiso, 3: CHOLMOD)
#debug=1
)
intR=1.1
O.engines=[
ForceResetter()
,InsertionSort
,InteractionLoop(
[Ig2_
[Ip2_
[Law2_
)
,flow
,GlobalStiffne
,NewtonIntegra
]
### simulation starts here
## to block the particles (better for permeability test)
for o in O.bodies:
o.state.
O.run(1,True)
## getBoundaryFlux get the total discharge [m3/s]
Qin = flow.getBoundar
Qout = flow.getBoundar
permeability = abs(Qout)
permeability2 = flow.averageVel
conductivity = permeability*
print "Qin=",Qin," Qout=",Qout," ARE THEY EQUAL? IF NOT-> NO FLOW!"
print "Permeability [m2]=",
flow.saveVtk() # to see the result in Paraview
for i in range(flow.
print i, flow.getVertices(i)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Lingran Zhang
- Solved:
- Last query:
- Last reply: