Why VTKExporter does not work?
I load a saved file of simulation and after loading it, I import every function in original script. every thing is good but it does n`t export VTK.
When I run main script (not saved file) , all things are ok and data export to VTK . Here is its code:
"
from yade import export,
import os
from yade import plot
import math
from yade import utils
import pylab
import matplotlib; matplotlib.
from matplotlib import pyplot
from yade import qt
import numpy as np
from numpy import *
from yade import export as expt
.
.
.
os.mkdir(
ClumpVtkData = expt.VTKExporte
def VTKview():
for b in O.bodies:
O.engines=
"
But now in saved file, I could n`t export any vtk file. (I import all codes above in terminal after loading saved file, but something is wrong .)
When I type VTKview() in terminal (when saved file of simulation is running), it says:
"global name 'ClumpVtkData' is not defined"
Please help me.
Best regards,
ubuntu : 18.04
yade 2018.02b
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mahdeyeh
- Solved:
- Last query:
- Last reply: