Skip to content

Issue 1591 - Maxwell Solid, Nelder-Mead-Algorithm, tau_epsilon computation#1615

Open
lsawade wants to merge 13 commits intodevelfrom
issue-1591
Open

Issue 1591 - Maxwell Solid, Nelder-Mead-Algorithm, tau_epsilon computation#1615
lsawade wants to merge 13 commits intodevelfrom
issue-1591

Conversation

@lsawade
Copy link
Collaborator

@lsawade lsawade commented Jan 28, 2026

Description

This PR implements the computation of tau_epsilon in the fortran form. Tests check whether we are below accuracy thresholds given by Savage 2010.
For specific combinations of bands and standard linear solids.

Commits

  • Added tau_epsilon computation, maxwell solid, and nelder-mead-simplex algorithm. Associated tests as well. (3d33fb9)

Issue Number

Closes #1591

Checklist

Please make sure to check developer documentation on specfem docs.

  • I ran the code through pre-commit to check style
  • THE DOCUMENTATION BUILDS WITHOUT WARNINGS/ERRORS
  • I have added labels to the PR (see right hand side of the PR page)
  • My code passes all the integration tests
  • I have added sufficient unittests to test my changes
  • I have added/updated documentation for the changes I am proposing
  • I have updated CMakeLists to ensure my code builds
  • My code builds across all platforms

@lsawade lsawade added the new physics This labels the introduction of new physics to the code label Jan 28, 2026
Copy link
Collaborator

@Rohit-Kakodkar Rohit-Kakodkar left a comment

Choose a reason for hiding this comment

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

Minor change

@lsawade
Copy link
Collaborator Author

lsawade commented Feb 4, 2026

Refactored the optimization interface. If we want to swap it out for something else it should be simple.

@lsawade lsawade requested a review from icui February 4, 2026 21:49
Copy link
Collaborator

@Rohit-Kakodkar Rohit-Kakodkar left a comment

Choose a reason for hiding this comment

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

Looks good. Minor change regarding docs.

Comment on lines 46 to 52
* \f[A(\omega) = \frac{1}{L} \sum_{i=1}^{L} \frac{1 + \omega^2 \tau_{\epsilon_i} \tau_{\sigma_i}}{1 + \omega^2 \tau_{\sigma_i}^2}\f]
*
* \f[B(\omega) = \frac{1}{L} \sum_{i=1}^{L} \frac{\omega (\tau_{\epsilon_i} - \tau_{\sigma_i})}{1 + \omega^2 \tau_{\sigma_i}^2}\f]
*
* where \f$L = N_\text{SLS}\f$. At low frequency, \f$A\f$ approaches \f$1\f$. The quality factor \f$Q = A/B\f$ is independent of the normalization.
* \f$B\f$ is independent of the normalization.
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are some locations where the linter seems to have not run

#include <Kokkos_Core.hpp>

/**
* @namespace specfem::optimization
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doc string is in the wrong place

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My pre-commit hook isn't working...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new physics This labels the introduction of new physics to the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants