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

Feat/add computation of stresses from derived deformation measures #20

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/sphinx/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Breaking Changes
New Features
============
- Added micromorphic hydra object (:pull:`7`). By `Nathan Miller`_.
- Added general setter functions for iteration and previous data (:pull:`20`). By `Nathan Miller`_.

Internal Changes
================
Expand All @@ -29,6 +30,7 @@ Internal Changes
- Copied over micromorphic linear elasticity subroutines to tardigrade hydra (:pull:`17`). By `Nathan Miller`_.
- Added initial micromorphic linear elastic residual (:pull:`18`). By `Nathan Miller`_.
- Added the calculation of the derived deformation measures (:pull:`19`). By `Nathan Miller`_.
- Added the calculation of the reference stress measures (:pull:`20`). By `Nathan Miller`_.

******************
0.1.2 (12-06-2023)
Expand Down
32 changes: 32 additions & 0 deletions src/cpp/tardigrade_hydra.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,38 @@ namespace tardigradeHydra{

void addIterationData( dataBase *data );

template<class T>
void setIterationData( const T &data, dataStorage<T> &storage ){
/*!
* Template function for adding iteration data
*
* \param &data: The data to be added
* \param &storage: The storage to add the data to
*/

storage.second = data;

storage.first = true;

addIterationData( &storage );

}

template<class T>
void setPreviousData( const T &data, dataStorage<T> &storage ){
/*!
* Template function for adding previous data
*
* \param &data: The data to be added
* \param &storage: The storage to add the data to
*/

storage.second = data;

storage.first = true;

}

private:

unsigned int _numEquations; //!< The number of residual equations
Expand Down
Loading
Loading