|
WARPXM v1.10.0
|
A supervariable that contains real and imaginary variables for each region specified. More...
A supervariable that contains real and imaginary variables for each region specified.
Public Member Functions | |
| def | __init__ (self, variable_name, components, sorder, region1, region2, region1_periodic, region2_periodic, region12_interface, explodable=True) |
| def | get_vars (self, region='all') |
| returns a list containing real and imaginary variables for the specified region | |
| def | ic_maxwell_sinc (self, skin_depth_norm, omega_p_norm, center, sinc_width, trans_width, amplitude, min_wavelen, te) |
| Create radial sinc function initial condition for field Bloch variables. | |
| def | ic_fivemoment_pulse (self, mass, gas_gamma, peak_density, background_density, temperature, num_cols, centers, radius, polynomial=False, degree=0) |
| Create plasma column initial condition for fluid Bloch variables. | |
| def | ic_sine1d (self, pert_amplitude, wavelength, background_value, components=None) |
| Creates sinusoidal density perurbation. | |
| def | ic_dirichlet1d (self, pert_amplitudes, wavelengths, background_value, components=None) |
| Creates dirichlet density profile. | |
| def | ic_fourier_square_1d (self, pert_amplitude, wavelength, background_value, no_terms, components=None) |
| Creates Fourier series approximation of a square wave. | |
| def | ic_sine2d (self, pert_amplitude, wavelength, background_value, phase_x=pi/2, phase_y=pi/2, components=None) |
| Creates 2D sinusoidal density perurbation. | |
| def | ic_setto (self, value, components=None) |
| Sets all variables to a value. | |
| def | apps_maxwell_flux (self, skin_depth_norm, omega_p_norm, rel_permittivity=1) |
| Create maxwell flux apps for Bloch variables. | |
| def | apps_maxwell_fluid_source (self, fluid, momentum_components, mass, charge, omega_p_norm, skin_depth_norm, rel_permittivity=1) |
| Create maxwell source apps for Bloch variables. | |
| def | apps_euler_flux (self, gas_gamma, numerical_flux_type='Roe') |
| Create euler flux apps for Bloch variables. | |
| def | apps_euler_field_source (self, field, mass, charge, skin_depth_norm) |
| Create euler field source apps for Bloch variables. | |
| def | va_bc_bloch (self, k_vector, a_vector) |
| Create Bloch periodic boundary condition variable adjusters. | |
Public Attributes | |
| variable_name | |
| sorder | |
| region1 | |
| region2 | |
| region1_periodic | |
| region2_periodic | |
| region12_interface | |
| real1 | |
| imag1 | |
| real2 | |
| imag2 | |
| def warpy.helpers.bloch.BlochVar.__init__ | ( | self, | |
| variable_name, | |||
| components, | |||
| sorder, | |||
| region1, | |||
| region2, | |||
| region1_periodic, | |||
| region2_periodic, | |||
| region12_interface, | |||
explodable = True |
|||
| ) |
| variable_name | Name of variable |
| components | Variable components list |
| sorder | Spatial order |
| region1 | List of subdomains in region 1 |
| region2 | List of subdomains in region 2 |
| region1_periodic | List of periodic boundaries on region 1 |
| region2_periodic | List of periodic boundaries on region 2 |
| region12_interface | List of boundaries between region 1 and 2 |
| explodable | Whether variable needs rk stage variables, default True. |
| def warpy.helpers.bloch.BlochVar.apps_euler_field_source | ( | self, | |
| field, | |||
| mass, | |||
| charge, | |||
| skin_depth_norm | |||
| ) |
Create euler field source apps for Bloch variables.
| field | Bloch variable for the field |
| mass | Normalized mass of fluid |
| charge | Normalized charge of fluid |
| skin_depth_norm |
| def warpy.helpers.bloch.BlochVar.apps_euler_flux | ( | self, | |
| gas_gamma, | |||
numerical_flux_type = 'Roe' |
|||
| ) |
Create euler flux apps for Bloch variables.
| gas_gamma | Ratio of specific heats for the fluid |
| def warpy.helpers.bloch.BlochVar.apps_maxwell_fluid_source | ( | self, | |
| fluid, | |||
| momentum_components, | |||
| mass, | |||
| charge, | |||
| omega_p_norm, | |||
| skin_depth_norm, | |||
rel_permittivity = 1 |
|||
| ) |
Create maxwell source apps for Bloch variables.
| fluid | Bloch variable for the fluid |
| momentum_components | List of momentum components of the fluid |
| mass | Normalized mass of fluid |
| charge | Normalized charge of fluid |
| skin_depth_norm | |
| omega_p_norm | |
| rel_permittivity | Default=1 |
| def warpy.helpers.bloch.BlochVar.apps_maxwell_flux | ( | self, | |
| skin_depth_norm, | |||
| omega_p_norm, | |||
rel_permittivity = 1 |
|||
| ) |
Create maxwell flux apps for Bloch variables.
| skin_depth_norm | |
| omega_p_norm | |
| rel_permittivity | Default=1 |
| def warpy.helpers.bloch.BlochVar.get_vars | ( | self, | |
region = 'all' |
|||
| ) |
returns a list containing real and imaginary variables for the specified region
@region String denoting which regions to include: 'all', 'region1', or 'region2'
| def warpy.helpers.bloch.BlochVar.ic_dirichlet1d | ( | self, | |
| pert_amplitudes, | |||
| wavelengths, | |||
| background_value, | |||
components = None |
|||
| ) |
Creates dirichlet density profile.
| background_value | |
| pert_amplitudes | |
| wavelengths | |
| domain_length |
| def warpy.helpers.bloch.BlochVar.ic_fivemoment_pulse | ( | self, | |
| mass, | |||
| gas_gamma, | |||
| peak_density, | |||
| background_density, | |||
| temperature, | |||
| num_cols, | |||
| centers, | |||
| radius, | |||
polynomial = False, |
|||
degree = 0 |
|||
| ) |
Create plasma column initial condition for fluid Bloch variables.
| mass | |
| gas_gamma | |
| peak_density | |
| background_density | |
| temperature | |
| num_cols | |
| cemters | |
| radius | |
| polynomial | |
| degree |
| def warpy.helpers.bloch.BlochVar.ic_fourier_square_1d | ( | self, | |
| pert_amplitude, | |||
| wavelength, | |||
| background_value, | |||
| no_terms, | |||
components = None |
|||
| ) |
Creates Fourier series approximation of a square wave.
| background_value | |
| pert_amplitude | |
| wavelength | |
| no_terms | Number of Fourier terms to include |
| def warpy.helpers.bloch.BlochVar.ic_maxwell_sinc | ( | self, | |
| skin_depth_norm, | |||
| omega_p_norm, | |||
| center, | |||
| sinc_width, | |||
| trans_width, | |||
| amplitude, | |||
| min_wavelen, | |||
| te | |||
| ) |
Create radial sinc function initial condition for field Bloch variables.
| skin_depth_norm | |
| omega_p_norm | |
| center | |
| sinc_width | |
| trans_width | |
| amplitude | |
| min_wavelen | |
| te |
| def warpy.helpers.bloch.BlochVar.ic_setto | ( | self, | |
| value, | |||
components = None |
|||
| ) |
Sets all variables to a value.
| value | Value to set variable to. |
| components | List of strings containing names of components. Defaults to all. |
| def warpy.helpers.bloch.BlochVar.ic_sine1d | ( | self, | |
| pert_amplitude, | |||
| wavelength, | |||
| background_value, | |||
components = None |
|||
| ) |
Creates sinusoidal density perurbation.
| background_density | |
| pert_amplitude | |
| domain_length |
| def warpy.helpers.bloch.BlochVar.ic_sine2d | ( | self, | |
| pert_amplitude, | |||
| wavelength, | |||
| background_value, | |||
phase_x = pi / 2, |
|||
phase_y = pi / 2, |
|||
components = None |
|||
| ) |
Creates 2D sinusoidal density perurbation.
| background_density | |
| pert_amplitude | |
| domain_length |
| def warpy.helpers.bloch.BlochVar.va_bc_bloch | ( | self, | |
| k_vector, | |||
| a_vector | |||
| ) |
Create Bloch periodic boundary condition variable adjusters.
| k_vector | Wave number of Bloch periodic boundary condition |
| a_vector | Lattice size |
| warpy.helpers.bloch.BlochVar.imag1 |
| warpy.helpers.bloch.BlochVar.imag2 |
| warpy.helpers.bloch.BlochVar.real1 |
| warpy.helpers.bloch.BlochVar.real2 |
| warpy.helpers.bloch.BlochVar.region1 |
| warpy.helpers.bloch.BlochVar.region12_interface |
| warpy.helpers.bloch.BlochVar.region1_periodic |
| warpy.helpers.bloch.BlochVar.region2 |
| warpy.helpers.bloch.BlochVar.region2_periodic |
| warpy.helpers.bloch.BlochVar.sorder |
| warpy.helpers.bloch.BlochVar.variable_name |