pymordemos.thermalblock_simple
¶
Simplified version of the thermalblock demo.
- Usage:
thermalblock_simple.py MODEL ALG SNAPSHOTS RBSIZE TEST
Arguments:
Module Contents¶
- 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]¶