File tree 1 file changed +12
-4
lines changed
romtools/trial_space_utils
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 44
44
#
45
45
46
46
'''
47
- The Shifter class is used to create an affine offset in a trial space.
47
+ ___
48
+ ##**Notes**
49
+ The vector defining the affine offset for a linear subspace is viewed as a matrix of shape
50
+ $$\\ mathbf{u}_{\\ mathrm{shift}} \in \\ mathbb{R}^{N_{\\ mathrm{vars}} \\ times N_{\mathrm{x}} }$$
51
+
52
+ ___
53
+ ##**Theory**
48
54
49
55
*What is a shift vector, and why would I use it?* In ROMs, we restrict a state to belong to a low-dimensional affine
50
56
trial space,
51
- $$\\ mathbf{u} \\ approx \\ tilde{\\ mathbf{u}} \\ in \\ mathcal{V}$$
57
+ $$\\ mathbf{u} \\ approx \\ tilde{\\ mathbf{u}} \\ in \\ mathcal{V} + \\ mathbf{u}_{ \\ mathrm{shift}} $$
52
58
where
53
- $\\ mathcal{V} \\ equiv \\ mathrm{range}(\\ boldsymbol \\ Phi) + \\ mathbf{u}_{\\ mathrm{shift}}$
54
- is the trial space. Here $\\ mathbf{u}_{\\ mathrm{shift}}$ defines an affine offset.
59
+ $\\ mathcal{V} \\ equiv \\ mathrm{range}(\\ boldsymbol \\ Phi) $. Here $\\ mathbf{u}_{\\ mathrm{shift}}$ defines an affine offset.
55
60
Affine offsets can be useful for a variety of reasons, including satisfying boundary conditions, and satisfying initial
56
61
conditions.
57
62
58
63
The Shifter class encapsulates the affine offset.
64
+
65
+ ___
66
+ ##**API**
59
67
'''
60
68
61
69
from typing import Tuple
You can’t perform that action at this time.
0 commit comments