Commit 3a76deec by Jigyasa Watwani

deleting data files

parent 8f0e9534
{
"resolution": 10,
"L": 1.0,
"D": 1,
"timestep": 0.1,
"maxtime": 0.5,
"timestamp": "191223-101432"
}
\ No newline at end of file
import dolfin as df
import numpy as np
np.set_printoptions(precision=16)
c1File = df.XDMFFile('171223-155711_concentration.xdmf')
c2File = df.XDMFFile('171223-155743_concentration.xdmf')
mesh = df.IntervalMesh(128, -0.5, 0.5)
times = np.arange(0.0, 1.1, 0.1)
SFS = df.FunctionSpace(mesh, 'P', 1)
for steps in range(len(times)):
c1 = df.Function(SFS)
c2 = df.Function(SFS)
c1File.read_checkpoint(c1, 'concentration', steps)
c2File.read_checkpoint(c2, 'concentration', steps)
print(df.assemble((c2 - c1)**2 * df.dx(mesh))**0.5)
c1File.close()
c2File.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment