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

Variables

str torder = 'SSPRK3'
 
str sorder = 'thirdOrder'
 
int skin_depth_norm = 1/3
 
int omega_p_norm = 5
 
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 apps
 
warpy writer
 
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_prop.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','Bx'],
26 spatial_scheme='Nodal')
27]

◆ apps

list examples.dg.maxwell.light_prop.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_prop.B0 = 1

◆ B_f

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

◆ By_ic

warpy examples.dg.maxwell.light_prop.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_prop.By_node = B_f.read_data()[1].flatten()

◆ Bz_ic

warpy examples.dg.maxwell.light_prop.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_prop.cmap

◆ configs

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

◆ connectivity

examples.dg.maxwell.light_prop.connectivity

◆ coords

examples.dg.maxwell.light_prop.coords

◆ detect_nonscalar

examples.dg.maxwell.light_prop.detect_nonscalar

◆ dset

warpy examples.dg.maxwell.light_prop.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_prop.dt = 1e-4

◆ dt_controller

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

◆ E0

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

◆ else

examples.dg.maxwell.light_prop.else :

◆ energy_factor

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

◆ Ey_ic

warpy examples.dg.maxwell.light_prop.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_prop.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_prop.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_prop.gen_xdmf

◆ mesh

warpy examples.dg.maxwell.light_prop.mesh
Initial value:
1= warpy.mesh.block(Bounds=[-1, 1],
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_prop.null_func = warpy.functions.set_to(name='null', value=0)

◆ omega_p_norm

int examples.dg.maxwell.light_prop.omega_p_norm = 5

◆ pmesh

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

◆ sd

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

◆ shading

examples.dg.maxwell.light_prop.shading

◆ sim

warpy examples.dg.maxwell.light_prop.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,2/(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_prop.skin_depth_norm = 1/3

◆ sorder

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

◆ spatial_solver

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

◆ temporal_solver

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

◆ torder

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

◆ True

examples.dg.maxwell.light_prop.True

◆ try

examples.dg.maxwell.light_prop.try :

◆ writer

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