Skip to content

Conversation

@grmnptr
Copy link
Contributor

@grmnptr grmnptr commented Nov 24, 2025

Closes #31965

@grmnptr grmnptr force-pushed the fv-interpolation-31965 branch from 28b49f7 to 3211d05 Compare November 24, 2025 20:16

/**
* Base class for face interpolation functions used by linear FV objects.
* Maybe we can extend it a little late to regular FV as well.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Maybe we can extend it a little late to regular FV as well.
* Maybe we can extend it a little later to regular FV as well.

Comment on lines 80 to 81
template <typename Derived>
static Real callInterpolate(const FVInterpolationMethod & method,
Copy link
Member

Choose a reason for hiding this comment

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

instead of CRTP you could use type erasure and a registry like @NamjaeChoi transitioned to for Kokkos. But I'm also ok with the CRTP

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'd be curious about the details! Could you point me to the relevant parts?

Copy link
Member

Choose a reason for hiding this comment

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

It's discussed (not super thoroughly) in https://mooseframework.inl.gov/syntax/Kokkos/. Let me know if you want more detail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very nice doco!

* the derived classes can use their own member variables (like a power variable for inverse
* distance weighting, or a limiter variable etc).
*/
class FVInterpolationMethod : public GeneralUserObject
Copy link
Member

Choose a reason for hiding this comment

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

why is this a user object?

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 don't know, I just wanted something quick to start with. If I get the green light I will make it a regular mooseobject.

Copy link
Contributor Author

@grmnptr grmnptr Nov 24, 2025

Choose a reason for hiding this comment

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

When I hack I hack with user objects.

Copy link
Member

Choose a reason for hiding this comment

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

You have my green light. Note that my light will always be greener if not using a user object haha. Then I know there's going to be first class support in the framework

@grmnptr
Copy link
Contributor Author

grmnptr commented Dec 20, 2025

I'm not happy with this design yet, will come back a little more.

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 light-weight, runtime selectable finite volume field interpolation system.

2 participants