Apply viscous forces on gridnodes
Hello everyone,
The model consists of grid nodes and grid-connection, and I am interested to implement the viscous component.
In the contact law, viscosity is implemented in Law2 ScGeom6D CohFrictPhys CohesionMoment only for the shear and twisting components and not for the normal component.
For that reason, I am considering implementing the viscosity by fictitious forces acting on each particle in such a way at each iteration and at each grid-node: F= f +f_viscous and f_ viscous= - c* velocity_of _particles.
By employing this approach, I intend to account for viscosity in both the shear as well as the normal component of particle interactions.
Do you have any idea how can we implement these viscous forces while optimizing computation time?
Thank you in advance!
Here is a simple and representative code:
from yade import pack, plot
from yade.gridpfacet import *
import numpy as np
#######
### DEFINE VARIABLES ###
#######
# Indicate the physical and mechanical properties of the problem:
# 1) Grains:
grainDensity=1e3 # particle density in [kg/m3]
grainYoung=5e7 # contact stiffness in [Pa]
grainPoisson=0.5 # poisson ratio
damp=0.5
# 2) Cohesion
Normal_
Shear_cohesion=
radius=0.1
color = [255. / 255., 102. / 255., 0. / 255.]
#######
### DEFINE MATERIALS ###
#######
# 1) Gridnodes:
O.materials.
# 2) GridConnections:
O.materials.
#######
### DEFINE ENGINES ###
#######
# 1)
newton=
# 2)
O.engines=[
]),
],
[
],
[
]
),
GlobalStiffnes
newton, # Id=2
PyRunner(
PyRunner(
]
#######
### Import the microstructure ###
#######
nodesIds=[]
connectionIds=[]
nodesIds.append( O.bodies.
nodesIds.append( O.bodies.
nodesIds.
nodesIds.
connectionIds.
connectionIds.
connectionIds.
O.bodies[
O.bodies[
#######
### SAVE DATA ###
#######
def addPlotData():
xnodeMiddle=0
ynodeMiddle=0
ynodeTop=0
if O.interactions[
else:
O.pause()
def saveData():
plot.saveDataT
plot.saveGnupl
# Define what to plot:
plot.plots=
# Show the plot:
plot.plot()
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 Nesrin Akel for more information if necessary.