Use this file to discover all available pages before exploring further.
CompFlowLab is primarily developed to test and rapidly implement ideas related to reduced order modeling (ROM) of fluids. The framework supports multiple types of ROMs, focusing primarily on intrusive ROMs, which have direct access to the solver rather than relying solely on training data. The following provides a brief overview of the methodology behind the ROMs available in CompFlowLab.
The simplest method of representing low rank approximation of the full order model state, denoted by q~ as follows,q~(t)=qref+P−1Vqr(t),where q~ serves as the approximation of q. The reference state, qref, is a constant translation vector which is common concept in fluid dynamics problems, often chosen as the initial solution, qref=q(t=t0), or the time-averaged solution defined byqref=ΔT1∫q(t)dt.The trial basis matrix, V, and the scaling matrix, P. CompFlowLab computes V using the proper orthogonal decomposition (POD) and singular value decompostion (SVD).
Nonlinear basis can also be employed to construct a low-dimensional subspace that enhances the approximation of the state variables.q(t)=qref+P−1[Vqr(t)+Vˉ(qr(t)⊗qr(t))]where Vˉ denotes a quadratic mapping operator, and ⊗ is the Kronecker product restricted to unique terms. The operator Vˉ is obtained by solving the optimization problem.Vˉ=Vˉ∈RN×2(np×np+1)argminQ−qref−P−1[VQr+Vˉ(Qr⊗Qr)]22+λ∥Vˉ∥22Qr=VTQ is the projection of Q onto the reduced basis and 𝜆 is a scalar regularization coefficient.
This methodology utilizes Gaussian Process Regression (GPR) and Radial Basis Function (RBF) interpolation to model closure errors in the latent space.Vtot=[VVˉ].Using the reduced basis V and Vˉ, the time-dependent high-dimensional state q~ is approximated asq~(t)=qref+P−1(Vqr(t)+VˉN(qr(t)))where the nonlinear operator N serves as a data-driven machine learning model, representing the discrepancy between the full approximation and its affine part, Vqr(t). Gaussian process regression (GPR) and radial basis function (RBF) regression are available options in CompFlowLab to learn this nonlinear mapping N.
Adaptive ROM is dynamically updating the reduced basis during online simulation to locally track evolving system dynamics, thereby achieving high accuracy even in shock-driven regimes. An ideal optimization problem can be defined to update the basis, V and sampling points S, simultaneously during the online ROM calculations,Vn,Sn=argmin∥Vn(SnTVn)†SnTPr(q^n)∥22