Skip to content

Ease the way to use base interpolation schemes for particle interpolators - #7288

Open
Theo-Geo wants to merge 2 commits into
geodynamics:mainfrom
Theo-Geo:overload_create_particle_interpolator
Open

Ease the way to use base interpolation schemes for particle interpolators#7288
Theo-Geo wants to merge 2 commits into
geodynamics:mainfrom
Theo-Geo:overload_create_particle_interpolator

Conversation

@Theo-Geo

@Theo-Geo Theo-Geo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

I added an overload to aspect::Particle::Interpolator::create_particle_interpolator, which takes an interpolation scheme as a string input. This way one can use the base model functionality that many material models use also for particle interpolators.

Furthermore i added the function get_valid_interpolator_names similar to get_valid_model_names for Material models. It replaces the already existing function "interpolator_object_names", which was declared but did not have any function definition in the interface.cc file. There was no occurrence in aspect where it was used.

For this i also slightly changed the documentation of the existing create particle interpolator, which said that it would take a model name as input though it actually read the interpolator name from a prm.

This functionality will be used in a new interpolator for rotations, where only a set of properties will be averaged with a special algorithm and the rest of the properties should be averaged with a fallback interpolator of the users choice.

Before your first pull request:

For all pull requests:

Only honest copy and paste from the material model interface has been used for this PR.

For new features/models or changes of existing features:

  • I have tested my new feature locally to ensure it is correct.
  • I have created a testcase for the new feature/benchmark in the tests/ directory.
  • I have added a changelog entry in the doc/modules/changes directory that will inform other users of my change.

@Theo-Geo
Theo-Geo force-pushed the overload_create_particle_interpolator branch from 8ee9061 to a7aeede Compare August 12, 2026 10:14
@Theo-Geo Theo-Geo changed the title add overload to create_particle_interpolator [WIP] add overload to create_particle_interpolator Aug 12, 2026
@Theo-Geo Theo-Geo changed the title [WIP] add overload to create_particle_interpolator Ease the way to use base interpolation schemes for particle interpolators Aug 12, 2026
Theo-Geo added a commit to Theo-Geo/aspect that referenced this pull request Aug 18, 2026
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