pymordemos.thermalblock_simple

Simplified version of the thermalblock demo.

Usage:

thermalblock_simple.py MODEL ALG SNAPSHOTS RBSIZE TEST

Arguments:

Module Contents

pymordemos.thermalblock_simple.discretize_fenics()[source]
pymordemos.thermalblock_simple.discretize_ngsolve()[source]
pymordemos.thermalblock_simple.discretize_pymor()[source]
pymordemos.thermalblock_simple.discretize_pymor_text()[source]
pymordemos.thermalblock_simple.main(model: Choices('pymor fenics ngsolve pymor_text') = Argument(..., help='High-dimensional model.'), alg: Choices('naive greedy adaptive_greedy pod') = Argument(..., help='The model reduction algorithm to use.'), snapshots: int = Argument(..., help='naive: ignored.\n\ngreedy/pod: Number of training_set parameters per block(in total SNAPSHOTS^(XBLOCKS * YBLOCKS) parameters).\n\nadaptive_greedy: size of validation set.'), rbsize: int = Argument(..., help='Size of the reduced basis.'), test: int = Argument(..., help='Number of parameters for stochastic error estimation.'))[source]
pymordemos.thermalblock_simple.reduce_adaptive_greedy(fom, reductor, parameter_space, validation_mus, basis_size)[source]
pymordemos.thermalblock_simple.reduce_greedy(fom, reductor, parameter_space, snapshots, basis_size)[source]
pymordemos.thermalblock_simple.reduce_naive(fom, reductor, parameter_space, basis_size)[source]
pymordemos.thermalblock_simple.reduce_pod(fom, reductor, parameter_space, snapshots, basis_size)[source]
pymordemos.thermalblock_simple.FENICS_ORDER = 2[source]
pymordemos.thermalblock_simple.GRID_INTERVALS = 100[source]
pymordemos.thermalblock_simple.NGS_ORDER = 4[source]
pymordemos.thermalblock_simple.TEXT = 'pyMOR'[source]
pymordemos.thermalblock_simple.XBLOCKS = 2[source]
pymordemos.thermalblock_simple.YBLOCKS = 2[source]