[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ESPResSo-users] An error on espressomd

From: 陈敏
Subject: [ESPResSo-users] An error on espressomd
Date: Mon, 1 Apr 2019 11:11:24 +0800

After my compiling with default configuration(src/core/myconfig-default.hpp) on Ubuntu 18.04, I run a python script as follow:
import espressomd
import object_in_fluid as oif
from espressomd import lb
import numpy as np

system = espressomd.System(box_l=[22.0, 14.0, 14.0])
system.time_step = 0.1 = 0.2

# creating the template for RBCs
type = oif.OifCellType(nodes_file="input/rbc374nodes.dat", triangles_file="input/rbc374triangles.dat",
                        check_orientation=False, system=system, ks=0.02, kb=0.016, kal=0.02,
                        kag=0.9, kv=0.5, resize=[2.0, 2.0, 2.0])

# creating the RBCs
cell = oif.OifCell(cell_type=type, particle_type=0, origin=[5.0, 5.0, 3.0])

# fluid
lbf =, dens=1.0, visc=1.5, tau=system.time_step, fric=1.5, ext_force_density=[0.0002, 0.0, 0.0])

# main integration loop
maxCycle = 100
for i in range(1, maxCycle):
    cell.output_vtk_pos_folded(file_name="output/sim1/cell_" + str(i) + ".vtk")
    print "time: ", str(i*system.time_step*500)
print "Simulation completed.»
En error is follow:

PNG image

The used files are in the appendix

Could anyone help me out?
Many thanks

Attachment: rbc374triangles.dat
Description: Binary data

Attachment: rbc374nodes.dat
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]