Impose boundary conditions to FlowEngine when using a predicate as surface
I have created a .gts surface and filled with spheres. I want to incorporate the flow engine now.
This is the code I have created:
from yade import pack
import gts, os.path, locale
from yade import qt
locale.
surf=gts.
idTissue=
pred=pack.
aabb=pred.aabb()
dim0=aabb[
# brain radius
dim0 = dim0/2.0
# small
radius=dim0/20. # get some characteristic dimension, use it for radius
O.bodies.
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
FlowEngine(
]
O.dt=0.
O.saveTmp()
O.timingEnabled
O.trackEnergy=True
a = qt.View()
In this way the I get infinite K1! error. I guess it is due to the fact that I have not imposed any boundary condition.
I do not have the standard 6 walls because my domain is a sphere and it has curved walls. Is there any way to modify the function
bndCondIsPressu
for example?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask nora for more information if necessary.