5 cf.env.assertion_backtrace =
False
6 cf.env.exception_backtrace =
False
7 cf.env.regist_signal_handlers =
False
8 cf.env.exception_log_level = 0
10 cf.env.exception_outputs =
False
15 domain = model.create_domain()
16 physics = model.create_physics(
'cf3.UFEM.NavierStokesPhysics')
17 solver = model.create_solver(
'cf3.UFEM.Solver')
18 hc = solver.add_direct_solver(
'cf3.UFEM.HeatConductionSteady')
21 mesh = domain.load_mesh(file = cf.URI(sys.argv[1]), name =
'Mesh')
22 hc.regions = [mesh.topology.uri()]
25 bc = hc.BoundaryConditions
26 bc.add_constant_bc(region_name =
'inner', variable_name =
'Temperature').value = 10
27 bc.add_constant_bc(region_name =
'outer', variable_name =
'Temperature').value = 35
33 print '----------------------- Temperatures profile -------------------'
34 temperatures = mesh.geometry.heat_conduction_solution
37 for (i, (x, y))
in enumerate(mesh.geometry.coordinates):
38 if abs(y) < 1e-2
and x > 0.:
40 T.append(temperatures[i][0])
41 for (x, T)
in sorted(zip(X, T)):
45 domain.write_mesh(cf.URI(
'atest-ufem-heat2d-disk.pvtu'))
boost::python::object create_component(ComponentWrapper &self, const std::string &name, const std::string &builder_name)