pymor.reductors.symplectic

Module Contents

class pymor.reductors.symplectic.QuadraticHamiltonianRBReductor(fom, RB=None)[source]

Bases: pymor.core.base.BasicObject

Symplectic Galerkin projection of a QuadraticHamiltonianModel.

Parameters

fom

The full order QuadraticHamiltonianModel to reduce.

RB

A SymplecticBasis prescribing the basis vectors.

extend_basis(self, U, method='svd_like', modes=2, copy_U=False)[source]
reconstruct(self, u)[source]
reduce(self, dims=None)[source]
class pymor.reductors.symplectic.ReducedQuadraticHamiltonianModel(T, initial_data, H_op, h=None, time_stepper=None, nt=None, num_values=None, output_functional=None, visualizer=None, name=None)[source]

Bases: pymor.models.symplectic.BaseQuadraticHamiltonianModel

A general reduced quadratic Hamiltonian system.

In contrast to the QuadraticHamiltonianModel, the reduced model does not rely on a BlockVectorSpace as phase_space.