WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.dg.maxwell.light_reflect Namespace Reference

Variables

str torder = 'SSPRK3'
 
str sorder = 'thirdOrder'
 
int skin_depth_norm = 1
 
int omega_p_norm = 1
 
warpy mesh
 
warpy field
 
tuple energy_factor = (omega_p_norm*skin_depth_norm)
 
tuple E0 = energy_factor
 
int B0 = 1
 
 else :
 
warpy Ey_ic
 
warpy Bz_ic
 
warpy Ez_ic
 
warpy By_ic
 
warpy null_func = warpy.functions.set_to(name='null', value=0)
 
list applicators
 
list bcs = []
 
list apps
 
warpy writer
 
warpy variable_adjusters
 
warpy spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps)
 
warpy temporal_solver
 
int dt = 1e-4
 
warpy dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)
 
warpy sim
 
 gen_xdmf
 
 True
 
 detect_nonscalar
 
 try :
 
warpy configs = warpy.load_configs('light_prop_config.py')
 
warpy dset
 
list sd = [sd for sd in dset.subdomains if sd.name=='domain'][0]
 
list B_f = [f for f in dset.fields[0] if f.name=='B'][0]
 
 coords
 
 connectivity
 
Triangulation pmesh = Triangulation(coords[:,0],coords[:,1],connectivity)
 
list By_node = B_f.read_data()[1].flatten()
 
 shading
 
 cmap
 

Variable Documentation

◆ applicators

list examples.dg.maxwell.light_reflect.applicators
Initial value:
1= [
2 # warpy.applicator(spatial_order=sorder,
3 # fun=Ey_ic,
4 # var=field,
5 # components=['Ey'],
6 # spatial_scheme='Nodal'),
7 # warpy.applicator(spatial_order=sorder,
8 # fun=Bz_ic,
9 # var=field,
10 # components=['Bz'],
11 # spatial_scheme='Nodal'),
12 # warpy.applicator(spatial_order=sorder,
13 # fun=Ez_ic,
14 # var=field,
15 # components=['Ez'],
16 # spatial_scheme='Nodal'),
17 # warpy.applicator(spatial_order=sorder,
18 # fun=By_ic,
19 # var=field,
20 # components=['By'],
21 # spatial_scheme='Nodal'),
22 warpy.applicator(spatial_order=sorder,
23 fun=null_func,
24 var=field,
25 components=['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz'],
26 spatial_scheme='Nodal')
27]

◆ apps

list examples.dg.maxwell.light_reflect.apps
Initial value:
1= [warpy.apps.maxwell.flux(name='maxwell', field=field,
2 skin_depth_norm=skin_depth_norm,
3 omega_p_norm=omega_p_norm)]
Maxwell flux.
Definition: maxwell.py:4

◆ B0

int examples.dg.maxwell.light_reflect.B0 = 1

◆ B_f

list examples.dg.maxwell.light_reflect.B_f = [f for f in dset.fields[0] if f.name=='B'][0]

◆ bcs

list examples.dg.maxwell.light_reflect.bcs = []

◆ By_ic

warpy examples.dg.maxwell.light_reflect.By_ic
Initial value:
1= warpy.functions.fourier(name='By_ic',base=0,
2 direction=[1,0,0],
3 center=[0,0,0],
4 sine_amplitudes=[B0],
5 sine_frequencies=[pi],
6 sine_phases=[0])
Fourier series.
Definition: fourier.py:4

◆ By_node

examples.dg.maxwell.light_reflect.By_node = B_f.read_data()[1].flatten()

◆ Bz_ic

warpy examples.dg.maxwell.light_reflect.Bz_ic
Initial value:
1= warpy.functions.fourier(name='Bz_ic',base=0,
2 direction=[1,0,0],
3 center=[0,0,0],
4 sine_amplitudes=[B0],
5 sine_frequencies=[pi],
6 sine_phases=[0])

◆ cmap

examples.dg.maxwell.light_reflect.cmap

◆ configs

warpy examples.dg.maxwell.light_reflect.configs = warpy.load_configs('light_prop_config.py')

◆ connectivity

examples.dg.maxwell.light_reflect.connectivity

◆ coords

examples.dg.maxwell.light_reflect.coords

◆ detect_nonscalar

examples.dg.maxwell.light_reflect.detect_nonscalar

◆ dset

warpy examples.dg.maxwell.light_reflect.dset
Initial value:
1= warpy.dataset(mesh_file_prefixes=['meshes/plotMesh'],
2 var_prefixes=['data/light_prop'],
3 dset_path=configs['test_rundir']('maxwell',sim.name))
Represents a single simulation's dataset.
Definition: dataset.py:162

◆ dt

int examples.dg.maxwell.light_reflect.dt = 1e-4

◆ dt_controller

warpy examples.dg.maxwell.light_reflect.dt_controller = warpy.dt_calc.fixed_dt(init_dt=dt)

◆ E0

int examples.dg.maxwell.light_reflect.E0 = energy_factor

◆ else

examples.dg.maxwell.light_reflect.else :

◆ energy_factor

tuple examples.dg.maxwell.light_reflect.energy_factor = (omega_p_norm*skin_depth_norm)

◆ Ey_ic

warpy examples.dg.maxwell.light_reflect.Ey_ic
Initial value:
1= warpy.functions.fourier(name='Ey_ic',
2 base=0,
3 direction=[1,0,0],
4 center=[0,0,0],
5 sine_amplitudes=[E0],
6 sine_frequencies=[pi],
7 sine_phases=[0])

◆ Ez_ic

warpy examples.dg.maxwell.light_reflect.Ez_ic
Initial value:
1= warpy.functions.fourier(name='Ez_ic',
2 base=0,
3 direction=[1,0,0],
4 center=[0,0,0],
5 sine_amplitudes=[E0],
6 sine_frequencies=[pi],
7 sine_phases=[0])

◆ field

warpy examples.dg.maxwell.light_reflect.field
Initial value:
1= warpy.variable(name='field',
2 components=['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz'],
3 basis_array_set=sorder)
Definition: variable.py:4

◆ gen_xdmf

examples.dg.maxwell.light_reflect.gen_xdmf

◆ mesh

warpy examples.dg.maxwell.light_reflect.mesh
Initial value:
1= warpy.mesh.block(Bounds=[-2, 2],
2 NumCells=[200],
3 NodeSets=['Left', 'Right'],
4 NumLayers=1,
5 # PeriodicBoundaries=['Left','Right'],
6 basis_array_set=sorder)
block mesh generator
Definition: mesh.py:87

◆ null_func

warpy examples.dg.maxwell.light_reflect.null_func = warpy.functions.set_to(name='null', value=0)

◆ omega_p_norm

int examples.dg.maxwell.light_reflect.omega_p_norm = 1

◆ pmesh

examples.dg.maxwell.light_reflect.pmesh = Triangulation(coords[:,0],coords[:,1],connectivity)

◆ sd

list examples.dg.maxwell.light_reflect.sd = [sd for sd in dset.subdomains if sd.name=='domain'][0]

◆ shading

examples.dg.maxwell.light_reflect.shading

◆ sim

warpy examples.dg.maxwell.light_reflect.sim
Initial value:
1= warpy.dg_sim(name='light_prop',meshes=[mesh],
2 initial_conditions=applicators,
3 temporal_solvers=[temporal_solver],
4 writers=[writer],
5 dt_controller = dt_controller,
6 flexible_writeout=True,
7 time=[0,6/(skin_depth_norm*omega_p_norm)],
8 write_steps=100,
9 verbosity='info',
10 global_verbosity='info')
Discontinuous finite element RK simulation.
Definition: dg_sim.py:11

◆ skin_depth_norm

int examples.dg.maxwell.light_reflect.skin_depth_norm = 1

◆ sorder

str examples.dg.maxwell.light_reflect.sorder = 'thirdOrder'

◆ spatial_solver

warpy examples.dg.maxwell.light_reflect.spatial_solver = warpy.spatial_solvers.dg(name="dg", spatial_order=sorder, applications=apps)

◆ temporal_solver

warpy examples.dg.maxwell.light_reflect.temporal_solver
Initial value:
1= warpy.host_actions.erk(name="rk", scheme=torder,
2 spatial_solvers=[spatial_solver],
3 variable_adjusters=[variable_adjusters]
4)
Explicit Runge-Kutta temporal solver Note: Dormand45 currently will not work correctly with limiters ...
Definition: erk.py:5

◆ torder

str examples.dg.maxwell.light_reflect.torder = 'SSPRK3'

◆ True

examples.dg.maxwell.light_reflect.True

◆ try

examples.dg.maxwell.light_reflect.try :

◆ variable_adjusters

warpy examples.dg.maxwell.light_reflect.variable_adjusters
Initial value:
2 name = 'bc_va',
3 priority = 0,
4 spatial_order = sorder,
5 applications = bcs,
6 is_virtual_bc = False,
7 copy_all=True,
8 )
spatial solver - currently hardcoded for rk methods
Definition: boundary_conditions.py:4

◆ writer

warpy examples.dg.maxwell.light_reflect.writer
Initial value:
1= warpy.host_actions.writer(name='writer',
2 ReadVars=[field])
Writes out a list of variables.
Definition: writer.py:4