Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EQP ROM workflow for unsteady NS #50

Merged
merged 9 commits into from
Jul 9, 2024
Merged

EQP ROM workflow for unsteady NS #50

merged 9 commits into from
Jul 9, 2024

Conversation

dreamer2368
Copy link
Collaborator

@dreamer2368 dreamer2368 commented Jul 9, 2024

ROMHandler block ordering

Previously, the blocks in the ROM system matrix are ordered by domain, i.e. for m-th subdomain and v-th variable, the block index is v + m * num_var.

Now block indexing supports two modes, specified by enum class ROMOrderBy:

  • ROMOrderBy::DOMAIN: v + m * num_var
  • ROMOrderBy::VARIABLE: m + v * numSub

This helps manipulating ROM matrix/vectors in the same way of FOM. Two auxiliary functions are also provided:

  • ROMHandlerBase:: GetBlockIndex: from a domain and variable to block index
  • ROMHandlerBase::GetDomainAndVariableIndex: from a block index to domain and variable

ROMHandler::SetRomMat

ROMHandler::SetRomMat now skips the LU factorization only when specified. Currently it does not skip anywhere.

mass matrix added in ROMLinearElement

ROMLinearElement now has the additional Matrix blocks for mass matrix. It can be created and saved only if needed.

Unsteady NS equation ROM solver

The ROM workflow for unsteady NS equation solver is implemented and verified:

  • UnsteadyNSSolver::BuildCompROMLinElems
  • UnsteadyNSSolver::AssembleROMMat
  • UnsteadyNSSolver::SolveROM

@dreamer2368 dreamer2368 changed the title Usns rom EQP ROM workflow for unsteady NS equation Jul 9, 2024
@dreamer2368 dreamer2368 changed the title EQP ROM workflow for unsteady NS equation EQP ROM workflow for unsteady NS Jul 9, 2024
@dreamer2368 dreamer2368 marked this pull request as ready for review July 9, 2024 01:40
@dreamer2368 dreamer2368 merged commit 97b5355 into main Jul 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant