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

Enable VolumetricFlowRate for LinearFV #29586

Open
wants to merge 5 commits into
base: next
Choose a base branch
from

Conversation

grmnptr
Copy link
Contributor

@grmnptr grmnptr commented Dec 19, 2024

Closes #29582

@grmnptr grmnptr self-assigned this Dec 19, 2024
@grmnptr grmnptr changed the title Rcrestruct 29582 Enable VolumetricFlowRate for LinearFV Dec 19, 2024
@moosebuild
Copy link
Contributor

Job Precheck, step Clang format on cfc893d wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/29586/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format dc0e9c8610932f7d6b4919833db28a710b949790

@moosebuild
Copy link
Contributor

moosebuild commented Dec 20, 2024

Job Documentation, step Docs: sync website on 135d543 wanted to post the following:

View the site here

This comment will be updated on new commits.

Copy link
Contributor

@GiudGiud GiudGiud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor things. This will be very useful

@@ -142,11 +140,12 @@ RhieChowInterpolatorBase::RhieChowInterpolatorBase(const InputParameters & param
_velocity_interp_method = Moose::FV::InterpMethod::RhieChow;
}

bool
RhieChowInterpolatorBase::hasFaceSide(const FaceInfo & fi, const bool fi_elem_side) const
Real
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you have an AD version of this?
I would be worried someone uses this inadvertently losing derivatives

RhieChowFaceFluxProvider(const InputParameters & params);

/**
* Retrieve the volumetric face flux, will not include derivatives
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a version of this that includes derivatives?
then the Real value is simply taking the raw value

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this is the same comment as before)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure we can actually. they would only differ in the return type. and C++ does not like that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we can add it with a different name. Right now this is only used in the postprocessor which requires Real.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not going to add it considering that this is used by one thing at this point and the doco states that no AD information is included. I don't want to add a getVolumetricFaceFluxAD function just with no use cases.

modules/navier_stokes/src/userobjects/RhieChowMassFlux.C Outdated Show resolved Hide resolved
@GiudGiud
Copy link
Contributor

GiudGiud commented Jan 1, 2025

This new assert is being hit by accident (so it needs a small fix up) but otherwise this is good to go! This will be great for getting more linear FV out there

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.

Add capability to use Volumetric flow rate with LinearFV segregated solvers.
3 participants