Enable optional prescribed initial prestretch#1900
Open
tuchpaul wants to merge 1 commit into4C-multiphysics:mainfrom
Open
Enable optional prescribed initial prestretch#1900tuchpaul wants to merge 1 commit into4C-multiphysics:mainfrom
tuchpaul wants to merge 1 commit into4C-multiphysics:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for an optional, user-provided initial prestretch tensor as the starting point for the IterativePrestress strategy, with identity as a default when not specified.
Changes:
- Add
PRESTRETCHas an optionalInterpolatedInputField<SymmetricTensor<...>>parameter forMIX_Prestress_Strategy_Iterative, defaulting to the identity tensor. - Extend
Core::IO::InputSpecBuildersto support optional selections and default values for (interpolated) input fields. - Add
value_typealias to generalized input fields to enable default-value plumbing in specs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/mixture/src/4C_mixture_prestress_strategy_iterative.hpp | Adds a stored initial prestretch input field parameter to the iterative prestress strategy parameters. |
| src/mixture/src/4C_mixture_prestress_strategy_iterative.cpp | Uses the initial prestretch field as the starting value in evaluate_prestress(). |
| src/global_legacy_module/4C_global_legacy_module_validmaterials.cpp | Registers PRESTRETCH as an optional material input with identity default for the iterative prestress strategy. |
| src/core/io/src/4C_io_input_spec_builders.hpp | Adds optional/required + defaulting support for selections and (interpolated) input fields. |
| src/core/io/src/4C_io_input_field.hpp | Exposes value_type needed by spec builders’ default-value handling. |
39bb6f2 to
e7f2bb0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces support for a predefined prestretch as the starting point for the IterativePrestress algorithm.
The predefined prestretch can be provided as an interpolated input field. To make this initial prestretch optional, the possibility to set default values for both the interpolated input field and the selection have been implemented.
The new test cases covers the new feature and represents the prestressing performed in paragraph 2.6 in
https://doi.org/10.1016/j.jmbbm.2023.105733.