Dear PRISMS-Team,
I am trying to calculate the state variables required for prisms-fatigue by recompiling prisms-plasticity. However, even after recompilation, the state variables output in remain unchanged.quadratureoutput.csv
Here are the steps I followed for recompilation:
Overwrote the following files in :plasticity/src/materialmodels/crystalplasticity/
Ran the following commands for recompilation:
Despite these steps, the output in remains the same.quadratureoutput.csv
Could you please let me know if there is anything wrong with my process? Are there any additional steps required to ensure that the changes take effect?
Best regards,
Itsuki
Hi Chaitali, Samuel,
Apologies for the delayed response—I was on leave.
I will check the output details tomorrow.
The reason I suspected that the recompilation was not successful is that the number of columns in quadratureoutput.csv remained unchanged before and after compilation.
If the compilation was successful, should the number of columns in the CSV file remain the same? Or is the newly defined state variable being written somewhere else?
Looking forward to your insights.
Best regards,
Itsuki
Hi Chaitali, Samuel,
I was unable to attach the Excel files directly, so instead, I have attached an image showing the last column (DW) of the quadratureoutput.csv file.
As expected, both before and after recompilation, the file still consists of 127 columns, just as shown in the plasticity tutorial video.
In the fatigue tutorial data, maxten.csv and maxcom.csv had 28 columns, so I assumed that if the recompilation was successful, quadratureoutput.csv should also be output with 28 columns. Is this assumption correct?
If more information is needed, I can recompile the code again and post the terminal messages from Ubuntu.
Looking forward to your response.
Best regards,
Itsuki
Hi Danish,
Thank you for your suggestion.
Regarding (1), I have confirmed that the exact same files are correctly placed.
As for (2), I had missed Reza's suggestion earlier. I just tried recompiling and ran the analysis. I will report the results tomorrow.
Thanks,
Itsuki
Hi Danish,
Thanks to your suggestion (2), the output in quadratureoutput.csv has changed!
However, it seems that only 4 columns are being output.
I have attached an image of the relevant part of updateAfterIncrement.cc that handles the output. From what I can see, it appears that only Grain ID, x, y, and z are being written to the file.
To output additional data, I believe the following line is relevant:
if (this->userInputs.enableUserMaterialModel) {
Could you advise me on what needs to be done to enable the full output?
Best regards,
Itsuki
Hi Danish,
It seems that I overlooked a part of the plasticity manual.
The attached manual also mentions "Enable User Material Model", so I will try adding this to prm.prm and rerun the analysis.
Best regards,
Itsuki
Hi Danish, Chaitali, Samuel,
I have successfully obtained the correct output in quadratureoutput.csv!
Thank you all for your help and support.
Best regards,
Itsuki