COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Functions | Variables
atest-ufem-particles-taylor-green Namespace Reference

Functions

def create_mesh (domain, segments)
 

Variables

tuple env = cf.Core.environment()
 
int nu = 1
 
int segs = 32
 
float D = 0.5
 
int Vs = 1
 
int Ua = 0
 
int Va = 0
 
float tau = 0.25
 
int beta = 3
 
float dt = 0.1
 
int numsteps = 100
 
int write_interval = 50
 
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 tg_solver = solver.add_unsteady_solver('cf3.UFEM.particles.TaylorGreen')
 
tuple eq_euler = solver.add_unsteady_solver('cf3.UFEM.particles.EquilibriumEuler')
 
tuple conv = solver.add_unsteady_solver('cf3.UFEM.particles.EquilibriumEulerConvergence')
 
tuple particle_c = solver.add_unsteady_solver('cf3.UFEM.particles.ParticleConcentration')
 
tuple mesh = create_mesh(domain, segs)
 
 lss = eq_euler.LSS
 
tuple ic_c = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'particle_concentration')
 
tuple ic_tau = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'ufem_particle_relaxation_time')
 
tuple series_writer = solver.TimeLoop.create_component('TimeWriter', 'cf3.solver.actions.TimeSeriesWriter')
 
tuple writer = series_writer.create_component('Writer', 'cf3.mesh.VTKXML.Writer')
 
tuple time = model.create_time()
 
tuple ufem_velocity = np.array(mesh.geometry.ufem_particle_velocity)
 
tuple tg_particle_velocity = np.array(mesh.geometry.taylor_green)
 
tuple err_array = np.abs(ufem_velocity-tg_particle_velocity[:,2:4])
 
tuple error_fd = mesh.geometry.create_field(name = 'error_field', variables = 'VelocityError[vector]')
 
list err_row = error_fd[i]
 

Function Documentation

def atest-ufem-particles-taylor-green.create_mesh (   domain,
  segments 
)

Definition at line 31 of file atest-ufem-particles-taylor-green.py.

Variable Documentation

int beta = 3

Definition at line 23 of file atest-ufem-particles-taylor-green.py.

tuple conv = solver.add_unsteady_solver('cf3.UFEM.particles.EquilibriumEulerConvergence')

Definition at line 116 of file atest-ufem-particles-taylor-green.py.

float D = 0.5

Definition at line 17 of file atest-ufem-particles-taylor-green.py.

tuple domain = model.create_domain()

Definition at line 100 of file atest-ufem-particles-taylor-green.py.

float dt = 0.1

Definition at line 25 of file atest-ufem-particles-taylor-green.py.

tuple env = cf.Core.environment()

Definition at line 5 of file atest-ufem-particles-taylor-green.py.

tuple eq_euler = solver.add_unsteady_solver('cf3.UFEM.particles.EquilibriumEuler')

Definition at line 111 of file atest-ufem-particles-taylor-green.py.

tuple err_array = np.abs(ufem_velocity-tg_particle_velocity[:,2:4])

Definition at line 175 of file atest-ufem-particles-taylor-green.py.

list err_row = error_fd[i]

Definition at line 180 of file atest-ufem-particles-taylor-green.py.

tuple error_fd = mesh.geometry.create_field(name = 'error_field', variables = 'VelocityError[vector]')

Definition at line 178 of file atest-ufem-particles-taylor-green.py.

tuple ic_c = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'particle_concentration')

Definition at line 147 of file atest-ufem-particles-taylor-green.py.

tuple ic_tau = solver.InitialConditions.create_initial_condition(builder_name = 'cf3.UFEM.InitialConditionConstant', field_tag = 'ufem_particle_relaxation_time')

Definition at line 151 of file atest-ufem-particles-taylor-green.py.

lss = eq_euler.LSS

Definition at line 140 of file atest-ufem-particles-taylor-green.py.

tuple mesh = create_mesh(domain, segs)

Definition at line 133 of file atest-ufem-particles-taylor-green.py.

tuple model = cf.Core.root()

Definition at line 99 of file atest-ufem-particles-taylor-green.py.

int nu = 1

Definition at line 14 of file atest-ufem-particles-taylor-green.py.

int numsteps = 100

Definition at line 27 of file atest-ufem-particles-taylor-green.py.

tuple particle_c = solver.add_unsteady_solver('cf3.UFEM.particles.ParticleConcentration')

Definition at line 119 of file atest-ufem-particles-taylor-green.py.

tuple physics = model.create_physics('cf3.UFEM.NavierStokesPhysics')

Definition at line 101 of file atest-ufem-particles-taylor-green.py.

int segs = 32

Definition at line 16 of file atest-ufem-particles-taylor-green.py.

tuple series_writer = solver.TimeLoop.create_component('TimeWriter', 'cf3.solver.actions.TimeSeriesWriter')

Definition at line 155 of file atest-ufem-particles-taylor-green.py.

tuple solver = model.create_solver('cf3.UFEM.Solver')

Definition at line 103 of file atest-ufem-particles-taylor-green.py.

float tau = 0.25

Definition at line 22 of file atest-ufem-particles-taylor-green.py.

tuple tg_particle_velocity = np.array(mesh.geometry.taylor_green)

Definition at line 174 of file atest-ufem-particles-taylor-green.py.

tuple tg_solver = solver.add_unsteady_solver('cf3.UFEM.particles.TaylorGreen')

Definition at line 104 of file atest-ufem-particles-taylor-green.py.

tuple time = model.create_time()

Definition at line 165 of file atest-ufem-particles-taylor-green.py.

int Ua = 0

Definition at line 19 of file atest-ufem-particles-taylor-green.py.

tuple ufem_velocity = np.array(mesh.geometry.ufem_particle_velocity)

Definition at line 173 of file atest-ufem-particles-taylor-green.py.

int Va = 0

Definition at line 20 of file atest-ufem-particles-taylor-green.py.

int Vs = 1

Definition at line 18 of file atest-ufem-particles-taylor-green.py.

int write_interval = 50

Definition at line 28 of file atest-ufem-particles-taylor-green.py.

tuple writer = series_writer.create_component('Writer', 'cf3.mesh.VTKXML.Writer')

Definition at line 156 of file atest-ufem-particles-taylor-green.py.

Send comments to:
COOLFluiD Web Admin