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

HMM stress/strain data extraction #17

Open
mvassaux opened this issue Sep 18, 2019 · 1 comment
Open

HMM stress/strain data extraction #17

mvassaux opened this issue Sep 18, 2019 · 1 comment
Assignees

Comments

@mvassaux
Copy link
Collaborator

How to output the stresses and strains data from an HMM run, for each integration (Gauss) point?

@mvassaux
Copy link
Collaborator Author

The function void FEProblem<dim>::output_lhistory () in the file headers/FE_problem.h does write the strain tensor and the stress tensor, in a single file for all the cells that are taken care of by the same processor (at the macroscale level).

So at the end, you have N_proc,macro files which contain the stress/strain data for the number of FE cells computed by each processor. The data in each file only concerns the last time step.

The files are named as such:
sprintf(filename, "%s/pr_%d.lhistory.csv", macrologloc.c_str(), this_FE_process);
So only the data of the last computed step is kept, if you modify the filename to include the timestep, let say that way:
sprintf(filename, "%s/%d.pr_%d.lhistory.csv", macrologloc.c_str(), timestep, this_FE_process);
Then the data is kept for every timestep and you can analyse it as you want.

The function is only called when timestep%freq_output_lhist==0, so by changing the value of freq_output_lhist you can change the frequency at which you want to save the strain/stress data.

@mvassaux mvassaux self-assigned this Sep 23, 2019
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

No branches or pull requests

1 participant