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

Add the elastic strain tensor to the volume output #617

Open
1 task done
NicoSchlw opened this issue Jul 15, 2022 · 3 comments
Open
1 task done

Add the elastic strain tensor to the volume output #617

NicoSchlw opened this issue Jul 15, 2022 · 3 comments

Comments

@NicoSchlw
Copy link
Contributor

Hi,
I want to request to add the possibility of outputting the elastic strain tensor in the volume.

Rationale

The feature request is related to ongoing research questions regarding the decay of near-field terms and non-linear soil effects.

Description

If the implementation is too complicated, it would probably also be possible to write a post-processing script to compute the strain tensor from the stress tensor.

General information

  • I have searched the issues of this repo and believe this is not a duplicate

Best regards,
Nico

@sebwolf-de
Copy link
Contributor

Hi,
the feature is almost there:

auto computeStrain = [&](int i, int j) {
double strain = 0.0;
const auto factor = -1.0 * (lambda) / (2.0 * mu * (3.0 * lambda + 2.0 * mu));
if (i == j) {
strain += factor * sumUniaxialStresses;
}
strain += 1.0 / (2.0 * mu) * getStress(i, j);
return strain;
};
, we would just need to add this to the volume output, probably in this function: https://github.com/SeisSol/SeisSol/blob/master/src/ResultWriter/WaveFieldWriter.cpp#L442

@sebwolf-de
Copy link
Contributor

It is rather easy to do this in paraview as a post-processing
step.

  1. Use easicube to sample the material model on a grid. Or even better, sample the material parameters onto the mesh, which you used for your simulation.
  2. Use attached paraview (save as .pvsm) script to compute e_xz. Other strain components can be done analogously.
    paraview-strain.txt

@krenzland
Copy link
Contributor

That works, but you have to keep in mind that this ignores the "group" property.

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

No branches or pull requests

3 participants