analysis_modules.uq package
Submodules
analysis_modules.uq.uq module
- class analysis_modules.uq.uq.PCE(df, rand_vars, obj_vars, poly_type)[source]
Bases:
object
Methods
He
Le
cross_validation
get_pce
projection
regression
self_validation
update_symbols_dict
- class analysis_modules.uq.uq.UQModel[source]
Bases:
object
Methods
Model is a function or routine that takes in some input variables as a pandas dataframe
Structure of dd dd = { "random variables": 'x1', 'x2', ..., 'xn', "objective variables": 'v1', 'v2', ..., 'vm', 'bounds': [[]1, []2,..., []n], 'distribution': [d1, d2, ..., dn] } } If the distribution is uniform, bounds holds a list of the lower and upper bounds of the corresponding variable, respectively. if the distribution is set to Lognormal, bounds holds a list of the mean and standard deviation of the corresponding variable, respectively.
A starts from 0 to N-1 B starts from N to 2N - 1 AB0 starts from 2N to 3N - 1
A starts from 0 to N-1 B starts from N to 2N - 1 AB0 starts from 2N to 3N - 1
example_simplySupportedBeam
generate_input_mc
generate_input_qmc
generate_input_space
generate_sobol_sequence
method
plot_sobol
plot_table
set_model
set_sample_size
sobol_df
sub_lists
- run_analysis()[source]
Model is a function or routine that takes in some input variables as a pandas dataframe
- set_input_variables(dd)[source]
Structure of dd dd = {
“random variables”: ‘x1’, ‘x2’, …, ‘xn’, “objective variables”: ‘v1’, ‘v2’, …, ‘vm’, ‘bounds’: [[]1, []2,…, []n], ‘distribution’: [d1, d2, …, dn] }
} If the distribution is uniform, bounds holds a list of the lower and upper bounds of the corresponding variable, respectively. if the distribution is set to Lognormal, bounds holds a list of the mean and standard deviation of the corresponding variable, respectively
- sobol_janon()[source]
A starts from 0 to N-1 B starts from N to 2N - 1 AB0 starts from 2N to 3N - 1
analysis_modules.uq.uq_cavity module
- class analysis_modules.uq.uq_cavity.UQ[source]
Bases:
object
Methods
get_qoi_value
(d, obj, n_cells, norm_length)Get SLANS quantities of itnerest
perform_geometry_checks
(par_half_cell)- param par_half_cell
Geometric parameters of half call of cavity: [A, B, a, b, Ri, L, Req, alpha]
uq
(key, shape, qois[, f_shift, bc, ...])- param key
- static perform_geometry_checks(par_half_cell)[source]
- Parameters
par_half_cell (list, array like) – Geometric parameters of half call of cavity: [A, B, a, b, Ri, L, Req, alpha]
- uq(key, shape, qois, f_shift=801580000.0, bc='mm', parentDir='', projectDir='', rand_vars=None, constraint=None)[source]
- Parameters
key (str) –
shape (list, array like) –
qois (list, array like) – Quantities of interest
f_shift (float) – Frequency shift
bc (str) – Bounday condition, 1:inner contour, 2:Electric wall Et = 0, 3:Magnetic Wall En = 0, 4:Axis, 5:metal
parentDir (str) – Parent directory
projectDir (str) – Project directory
rand_vars (list, array like) – Random variables
constraint (list, array like) – Constraints