![]() |
COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Variables | |
| tuple | env = cf.Core.environment() |
| float | rho_f = 0.9 |
| float | mu = 0.19e-4 |
| float | r0 = 0.01 |
| int | omega0 = 18 |
| int | g = 10 |
| float | dt = 0.1 |
| int | numsteps = 5 |
| int | write_interval = 50 |
| int | resolution = 64 |
| list | diams = [20.e-6, 40.e-6, 80.e-6] |
| list | volumes = [4./3.*pi*(d/2.)**3 for d in diams] |
| int | ref_vol = 1 |
| list | c_reduced = [1, 1., 1.] |
| list | zeta = [v/ref_vol*c for (v,c) in zip(volumes,c_reduced)] |
| tuple | model = cf.Core.root() |
| tuple | domain = model.create_domain() |
| tuple | physics = model.create_physics('cf3.UFEM.NavierStokesPhysics') |
| tuple | solver = model.create_solver('cf3.UFEM.Solver') |
| tuple | polydisp = solver.add_unsteady_solver('cf3.UFEM.particles.Polydisperse') |
| tuple | mesh = domain.create_component('Mesh', 'cf3.mesh.Mesh') |
| float | x_min = -0.09 |
| float | x_max = 0.2 |
| float | y_min = -0.2 |
| float | y_max = 0.2 |
| x_segs = resolution | |
| y_segs = resolution | |
| int | z_segs = 2 |
| tuple | blocks = domain.create_component('blocks', 'cf3.mesh.BlockMesh.BlockArrays') |
| tuple | points = blocks.create_points(dimensions = 2, nb_points = 4) |
| tuple | block_nodes = blocks.create_blocks(1) |
| tuple | block_subdivs = blocks.create_block_subdivisions() |
| tuple | gradings = blocks.create_block_gradings() |
| tuple | left_patch = blocks.create_patch_nb_faces(name = 'left', nb_faces = 1) |
| tuple | bottom_patch = blocks.create_patch_nb_faces(name = 'bottom', nb_faces = 1) |
| tuple | top_patch = blocks.create_patch_nb_faces(name = 'top', nb_faces = 1) |
| tuple | right_patch = blocks.create_patch_nb_faces(name = 'right', nb_faces = 1) |
| tuple | partitioner = domain.create_component('Partitioner', 'cf3.mesh.actions.PeriodicMeshPartitioner') |
| tuple | link_horizontal = partitioner.create_link_periodic_nodes() |
| tuple | link_front_back = partitioner.create_link_periodic_nodes() |
| tuple | series_writer = solver.TimeLoop.create_component('TimeWriter', 'cf3.solver.actions.TimeSeriesWriter') |
| tuple | writer = series_writer.create_component('Writer', 'cf3.mesh.VTKXML.Writer') |
| list | u_arr = ['-((1 - exp(-(x^2 + y^2)/{r0}^2))*{omega0}*{r0}^2*y)/(2.*(x^2 + y^2))'.format(r0=r0,omega0=omega0), '((1 - exp(-(x^2 + y^2)/{r0}^2))*{omega0}*{r0}^2*x)/(2.*(x^2 + y^2))'.format(r0=r0,omega0=omega0), '0'] |
| tuple | ic_u = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionFunction', field_tag = 'navier_stokes_u_solution') |
| tuple | ic_lin_u = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionFunction', field_tag = 'linearized_velocity') |
| tuple | ic_g = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'body_force') |
| string | zeta_name = 'zeta_' |
| string | c_name = 'c_' |
| tuple | time = model.create_time() |
| tuple block_nodes = blocks.create_blocks(1) |
Definition at line 74 of file atest-ufem-particles-burgers.py.
| tuple block_subdivs = blocks.create_block_subdivisions() |
Definition at line 77 of file atest-ufem-particles-burgers.py.
| tuple blocks = domain.create_component('blocks', 'cf3.mesh.BlockMesh.BlockArrays') |
Definition at line 67 of file atest-ufem-particles-burgers.py.
| tuple bottom_patch = blocks.create_patch_nb_faces(name = 'bottom', nb_faces = 1) |
Definition at line 86 of file atest-ufem-particles-burgers.py.
| string c_name = 'c_' |
Definition at line 144 of file atest-ufem-particles-burgers.py.
| list c_reduced = [1, 1., 1.] |
Definition at line 31 of file atest-ufem-particles-burgers.py.
| list diams = [20.e-6, 40.e-6, 80.e-6] |
Definition at line 28 of file atest-ufem-particles-burgers.py.
| tuple domain = model.create_domain() |
Definition at line 36 of file atest-ufem-particles-burgers.py.
| float dt = 0.1 |
Definition at line 21 of file atest-ufem-particles-burgers.py.
| tuple env = cf.Core.environment() |
Definition at line 5 of file atest-ufem-particles-burgers.py.
| int g = 10 |
Definition at line 19 of file atest-ufem-particles-burgers.py.
| tuple gradings = blocks.create_block_gradings() |
Definition at line 80 of file atest-ufem-particles-burgers.py.
| tuple ic_g = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'body_force') |
Definition at line 138 of file atest-ufem-particles-burgers.py.
| tuple ic_lin_u = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionFunction', field_tag = 'linearized_velocity') |
Definition at line 133 of file atest-ufem-particles-burgers.py.
| tuple ic_u = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionFunction', field_tag = 'navier_stokes_u_solution') |
Definition at line 128 of file atest-ufem-particles-burgers.py.
| tuple left_patch = blocks.create_patch_nb_faces(name = 'left', nb_faces = 1) |
Definition at line 83 of file atest-ufem-particles-burgers.py.
| tuple link_front_back = partitioner.create_link_periodic_nodes() |
Definition at line 107 of file atest-ufem-particles-burgers.py.
| tuple link_horizontal = partitioner.create_link_periodic_nodes() |
Definition at line 102 of file atest-ufem-particles-burgers.py.
| tuple mesh = domain.create_component('Mesh', 'cf3.mesh.Mesh') |
Definition at line 57 of file atest-ufem-particles-burgers.py.
| tuple model = cf.Core.root() |
Definition at line 35 of file atest-ufem-particles-burgers.py.
| float mu = 0.19e-4 |
Definition at line 15 of file atest-ufem-particles-burgers.py.
| int numsteps = 5 |
Definition at line 23 of file atest-ufem-particles-burgers.py.
| int omega0 = 18 |
Definition at line 18 of file atest-ufem-particles-burgers.py.
| tuple partitioner = domain.create_component('Partitioner', 'cf3.mesh.actions.PeriodicMeshPartitioner') |
Definition at line 98 of file atest-ufem-particles-burgers.py.
| tuple physics = model.create_physics('cf3.UFEM.NavierStokesPhysics') |
Definition at line 37 of file atest-ufem-particles-burgers.py.
| tuple points = blocks.create_points(dimensions = 2, nb_points = 4) |
Definition at line 68 of file atest-ufem-particles-burgers.py.
| tuple polydisp = solver.add_unsteady_solver('cf3.UFEM.particles.Polydisperse') |
Definition at line 41 of file atest-ufem-particles-burgers.py.
| float r0 = 0.01 |
Definition at line 17 of file atest-ufem-particles-burgers.py.
| int ref_vol = 1 |
Definition at line 30 of file atest-ufem-particles-burgers.py.
| int resolution = 64 |
Definition at line 26 of file atest-ufem-particles-burgers.py.
| float rho_f = 0.9 |
Definition at line 14 of file atest-ufem-particles-burgers.py.
| tuple right_patch = blocks.create_patch_nb_faces(name = 'right', nb_faces = 1) |
Definition at line 92 of file atest-ufem-particles-burgers.py.
| tuple series_writer = solver.TimeLoop.create_component('TimeWriter', 'cf3.solver.actions.TimeSeriesWriter') |
Definition at line 118 of file atest-ufem-particles-burgers.py.
| tuple solver = model.create_solver('cf3.UFEM.Solver') |
Definition at line 39 of file atest-ufem-particles-burgers.py.
| tuple time = model.create_time() |
Definition at line 152 of file atest-ufem-particles-burgers.py.
| tuple top_patch = blocks.create_patch_nb_faces(name = 'top', nb_faces = 1) |
Definition at line 89 of file atest-ufem-particles-burgers.py.
| list u_arr = ['-((1 - exp(-(x^2 + y^2)/{r0}^2))*{omega0}*{r0}^2*y)/(2.*(x^2 + y^2))'.format(r0=r0,omega0=omega0), '((1 - exp(-(x^2 + y^2)/{r0}^2))*{omega0}*{r0}^2*x)/(2.*(x^2 + y^2))'.format(r0=r0,omega0=omega0), '0'] |
Definition at line 127 of file atest-ufem-particles-burgers.py.
| list volumes = [4./3.*pi*(d/2.)**3 for d in diams] |
Definition at line 29 of file atest-ufem-particles-burgers.py.
| int write_interval = 50 |
Definition at line 24 of file atest-ufem-particles-burgers.py.
| tuple writer = series_writer.create_component('Writer', 'cf3.mesh.VTKXML.Writer') |
Definition at line 119 of file atest-ufem-particles-burgers.py.
| float x_max = 0.2 |
Definition at line 60 of file atest-ufem-particles-burgers.py.
| float x_min = -0.09 |
Definition at line 59 of file atest-ufem-particles-burgers.py.
| x_segs = resolution |
Definition at line 63 of file atest-ufem-particles-burgers.py.
| float y_max = 0.2 |
Definition at line 62 of file atest-ufem-particles-burgers.py.
| float y_min = -0.2 |
Definition at line 61 of file atest-ufem-particles-burgers.py.
| y_segs = resolution |
Definition at line 64 of file atest-ufem-particles-burgers.py.
| int z_segs = 2 |
Definition at line 65 of file atest-ufem-particles-burgers.py.
Definition at line 32 of file atest-ufem-particles-burgers.py.
| string zeta_name = 'zeta_' |
Definition at line 143 of file atest-ufem-particles-burgers.py.
1.8.9.1
|
Send comments to: COOLFluiD Web Admin |