5 model = root.create_component(
'model',
'cf3.solver.Model')
7 domain = model.create_domain()
8 solver = model.create_solver(
'cf3.solver.SimpleSolver')
9 phys_model = model.create_physics(
'cf3.physics.DynamicModel')
11 if domain.name() !=
'Domain':
12 raise Exception(
'Failed to create domain')
13 if solver.name() !=
'SimpleSolver':
14 raise Exception(
'Failed to create solver')
15 if phys_model.name() !=
'DynamicModel':
16 raise Exception(
'Failed to create physics')