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

Variables

int torder = 3
 
int sorder = 2
 
int omega_c_norm = 3
 
int omega_p_norm = 5
 
int c_0_norm = 4
 
warpy mesh
 
warpy field
 
int E0 = omega_c_norm*c_0_norm/omega_p_norm**2
 
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 ic_applicators
 
list ss1
 
list ss_sets = [ss1]
 
warpy writer
 
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_cell = B_f.read_data()[1].flatten()
 
 shading
 
 cmap
 

Variable Documentation

◆ B0

int examples.fvm.light_prop.B0 = 1

◆ B_f

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

◆ By_cell

examples.fvm.light_prop.By_cell = B_f.read_data()[1].flatten()

◆ By_ic

warpy examples.fvm.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

◆ Bz_ic

warpy examples.fvm.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])

◆ c_0_norm

int examples.fvm.light_prop.c_0_norm = 4

◆ cmap

examples.fvm.light_prop.cmap

◆ configs

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

◆ connectivity

examples.fvm.light_prop.connectivity

◆ coords

examples.fvm.light_prop.coords

◆ detect_nonscalar

examples.fvm.light_prop.detect_nonscalar

◆ dset

warpy examples.fvm.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']('pcmaxwell',sim.name))
Represents a single simulation's dataset.
Definition: dataset.py:162

◆ E0

int examples.fvm.light_prop.E0 = omega_c_norm*c_0_norm/omega_p_norm**2

◆ else

examples.fvm.light_prop.else :

◆ Ey_ic

warpy examples.fvm.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.fvm.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.fvm.light_prop.field
Initial value:
1= warpy.variable(name='field',
2 components=['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz'])
Definition: variable.py:4

◆ gen_xdmf

examples.fvm.light_prop.gen_xdmf

◆ ic_applicators

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

◆ mesh

warpy examples.fvm.light_prop.mesh
Initial value:
1= warpy.mesh.block(Bounds=[-1, 1]*2,
2 NumCells=[50]*2,
3 NodeSets=['Left', 'Right','Bottom','Top'],
4 NumLayers=sorder,
5 PeriodicBoundaries=['Left','Right','Bottom','Top'])
block mesh generator
Definition: mesh.py:87

◆ null_func

warpy examples.fvm.light_prop.null_func = warpy.functions.set_to(name='null', value=0)

◆ omega_c_norm

int examples.fvm.light_prop.omega_c_norm = 3

◆ omega_p_norm

int examples.fvm.light_prop.omega_p_norm = 5

◆ pmesh

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

◆ sd

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

◆ shading

examples.fvm.light_prop.shading

◆ sim

warpy examples.fvm.light_prop.sim
Initial value:
1= warpy.fvm_sim(name='light_prop',
2 torder=torder,
3 sorder=sorder,
4 meshes=[mesh],
5 initial_conditions=ic_applicators,
6 boundary_conditions=None,
7 writers=[writer],
8 subsolver_sets=ss_sets,
9 time=[0,1],
10 write_steps=100,
11 verbosity='info')
Finite volume simulation using RK Reconstruction.
Definition: fvm_sim.py:1

◆ sorder

int examples.fvm.light_prop.sorder = 2

◆ ss1

list examples.fvm.light_prop.ss1
Initial value:
1= [warpy.hyperapps.pcmaxwell(name='pcmaxwell_flux',
2 field_var=field,
3 Chi_E = 0,
4 Chi_B = 0,
5 omega_c_norm = omega_c_norm,
6 omega_p_norm = omega_p_norm,
7 c_0_norm = c_0_norm,
8 fluxes_only=True)]
Definition: pcmaxwell.py:4

◆ ss_sets

list examples.fvm.light_prop.ss_sets = [ss1]

◆ torder

int examples.fvm.light_prop.torder = 3

◆ True

examples.fvm.light_prop.True

◆ try

examples.fvm.light_prop.try :

◆ writer

warpy examples.fvm.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