Yade with RedHat / AlmaLinu
Hi,
I have been using Yade with Ubuntu until now, but I am moving to RedHat / AlmaLinux to use a HPC.
My code work perfectly fine in Ubuntu, however when I move to Redhat I am getting error message saying
'VTKRecorder', 'TwoPhaseFlowEn
Does anyone have experience in using Yade with RedHat. The GUI is not visible in Redhat, can only use Batch mode.
Best regards,
Mithu
MWE
from __future__ import print_function
from yade import utils, plot, timing
from yade import pack
import pandas as pd
import numpy as np
from PIL import Image
from yade import pack, export
from scipy.interpolate import interp1d
from csv import writer
import os
from scipy.integrate import odeint
import matplotlib.pyplot as plt
import csv
from matplotlib.pyplot import figure
from pylab import *
from scipy.optimize import curve_fit
readParamsFromT
from yade.params.table import *
import scipy.spatial
import statistics
import math
O = Omega()
save=save
# Physical parameters
fr_PH101 = 0.41
fr_CCS=0.69
rho_PH101 = 1561
rho_CCS =1403
D_PH101 = 7.9e-5
r1_PH101 = D_PH101/2
D_CCS = 5.4e-5
r1_CCS = D_CCS/2
#r2 = Diameter/2
k1 = 10000
kp = 140000
kc = k1 * 0.1
ks = k1 * 0.1
Chi1 = 0.34
O.dt = 1.0e-8
wCCS=wCCS
particleMass_PH101 = (4.0/3.
particleMass_CCS = (4.0/3.
m_tab_PH101=
m_tab_CCS=
tab_no_
tab_no_p_CCS =m_tab_CCS /particleMass_CCS
Tab_rad=0.001
r_tab=r_tab*1e-3 #real size
h_tab=h_tab*1e-3
v_tab=math.
v_1mm=math.
no_p_PH101=
no_p_CCS=
PhiF1=0.999
#PhiF1 = DeltaPMax*
Cyl_height=0.006
cross_area=
Comp_press_up= comp_press
Comp_force_
Comp_press_lp= comp_press
Comp_force_
compression_
sc_por_15=2
rho_mix=
data_to_
compression_
# Add material
matPH101 = O.materials.
matCCS = O.materials.
walls1_
##walls for flow engines#
mn,mx,ml=
walls=aabbWalls
wallIds=
# Spheres for compression and walls
sp=pack.
sp.makeCloud(
n1 = len(sp)
sp.makeCloud(
for i,(c,r) in enumerate(sp):
mat = matPH101 if i < n1 else matCCS
color = (0,1,1) if i < n1 else (1,0,1)
O.bodies.
die=O.bodies.
base_filename=
vtkRecorder = VTKRecorder(
# Add engines
O.engines = [
ForceResetter(),
InsertionSort
InteractionLoop(
[Ig2_
Ig2_
Ig2_
[Ip2_
[Law2_
),
NewtonIntegra
PyRunner(
TwoPhaseFlowE
]
def checkForce():
if O.iter < 4000000:
return
if unbalancedForce() > 1:
return
global upper_punch
upper_
for i in upper_punch:
body= O.bodies[i]
global lower_punch
lower_
for n in lower_punch:
body= O.bodies[n]
O.engines = O.engines + [PyRunner(
fCheck.command = 'unloadPlate()'
def unloadPlate():
force_up=0
for i in upper_punch:
body= O.bodies[i]
force_lp=0
for n in lower_punch:
body = O.bodies[n]
force_lp = force_lp + abs(O.forces.
if ((force_up > Comp_force_up) and (force_lp > Comp_force_lp)):
for i in upper_punch:
body= O.bodies[i]
for n in lower_punch:
body= O.bodies[n]
def stopUnloading():
force_lp=0
for n in lower_punch:
body = O.bodies[n]
force_lp = force_lp + abs(O.forces.
if force_lp==0:
for i in lower_punch:
body= O.bodies[i]
#if ((force_up==0) and (force_lp==0)):
for i in upper_punch:
for i in lower_punch:
if pos_up[2]> pos_lp[
for j in upper_punch: O.bodies.erase(j)
for j in lower_punch: O.bodies.erase(j)
for b in O.bodies:
if isinstance(b.shape, Sphere):
elif b.id<max(
else:
for b in O.bodies:
if isinstance(b.shape, Sphere):
elif b.id<max(
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 Mithushan Soundaranathan for more information if necessary.