Skip to content

Feature: Interpolation#18

Open
rouson wants to merge 20 commits intomainfrom
interpolation
Open

Feature: Interpolation#18
rouson wants to merge 20 commits intomainfrom
interpolation

Conversation

@rouson
Copy link
Copy Markdown
Contributor

@rouson rouson commented Apr 5, 2026

This pull request adds

  1. A faces_to_centers_1D_t type with
    a. a user-defined structures constructor and
    b. a center_values type-bound function;
  2. A centers_to_faces_1D_t type with
    a. a user-defined structures constructor and
    b. a face_values type-bound function;
  3. Unit tests for faces_to_centers_1D_t and centers_to_faces_1D_t; and
  4. An experimental capability for computing the divergence of a 1D dyad by applying .div. to a dyad_1D_t object .

Given values at cell faces, center_values estimates the corresponding values at the cell centers augmented to include the celll boundaries; whereas face_values is the inverse of center_values. Both estimators use the 2nd- or 4th-order schemes of Dumett & Castillo (2022) based on the order specified when constructing the interpolator object.

The experimental dyad-divergence operator uses the centers_to_faces_1D_t interpolator to estimate the dyad at cell faces. computing the

This commit

1. Adds a dyad_1D_t type,,
2. Adds a vector_1D_t operator(/) with a RHS integer operand,
3. Adds operator(*) for vector_1D_t operands & a dyad_1D_t result,
4. Updates the burgers-1D example to compute u*u/2.
This commit adds support expressions of the form .div. uu, where
uu is a 1D dyadic tensor and the result is stored at cell centers.

To Do:
1. Embed an interpolation operator into the divergence operator
   to interpolate the result back out to the cell faces.
2. Use the interpolated values to construct the vector_1D_t result.
This commit prepares for disambiguation of two types of mimetic
matrix abstractions: one for differential operators and one for
interpolation operators.
This commit adds interpolation operator matrix abstractions to
go from cell centers to faces and vice versa based on the
definitions in Dumett & Castillo (2022).

https://doi.org/10.13140/RG.2.2.26630.14400
This commit adds a centers-to-faces interpolator and uses that
interpolator when computing the divergence of a dyad.
This commit adds the interpolate_1D_t type with a type-bound
procedure that interpolates using values at cell centers plus
boundaries to estimate values at faces using the 2nd- and
4th-order schemes of Dumett & Castillo (2022).
This commit adds the faces_to_centers_t type with a type-bound
procedure that interpolates using values at the faces to estimate
to estimate values at cell centers plus boundaries using the 2nd-
and 4th-order schemes of Dumett & Castillo (2022).
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