def test_field1d_init():
# create a field where the main material is 5
fld = fls.Field1D(100, 0.1, 100, 0.1, int(5))
# check if the "material parameter" 'real' for the complete field is 5
assert np.allclose(fld.material_vector('real'), 5)
评论列表
文章目录