Recompiling prisms-plasticity for prisms-fatigue: No change in quadratureoutput.csv

72 views
Skip to first unread message

Itsuki Fujita

unread,
Mar 5, 2025, 7:31:39 PMMar 5
to Prisms-CPFE-users

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:

  1. Overwrote the following files in :plasticity/src/materialmodels/crystalplasticity/

    • calculatePlasticity.cc
    • updateAfterIncrement.cc
    • userFunction.cc
  2. Ran the following commands for recompilation:

cd plasticity
cmake -DCMAKE_PREFIX_PATH=~/dealii-candi/deal.II-v9.3.3/lib/cmake/deal.II
make -j 16

cd applications
cd crystalPlasticity
cmake -DCMAKE_PREFIX_PATH=~/dealii-candi/deal.II-v9.3.3/lib/cmake/deal.II
make release -j 16

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

Chaitali Patil

unread,
Mar 5, 2025, 8:45:05 PMMar 5
to Prisms-CPFE-users
Hi Itsuki, 

Your compilation process looks fine. Please ensure the code is compiled without errors. Did you compare  columns of the quadratureoutput.csv before and after compilation?  Even though output file's name is same, after successful compilation, code should output required state variables in the csv file. 

-Regards,
Chaitali

Samuel Alfred

unread,
Mar 6, 2025, 10:33:57 PMMar 6
to Prisms-CPFE-users
Hello Itsuki, 

From your message, I believe you code compiled correctly. You will have to manually change the quadratureoutput.csv files to MaxComp and MaxTen files, in order to use the PRISMS fatigue framework. Also, pay attention to the loading and time steps in the prm.prm files. 

 Kindly see the threads below for more information: 




Samuel 

On Wednesday, March 5, 2025 at 7:31:39 PM UTC-5 Itsuki Fujita wrote:

Itsuki Fujita

unread,
Mar 9, 2025, 10:11:35 PMMar 9
to Prisms-CPFE-users

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

2025年3月7日金曜日 12:33:57 UTC+9 Samuel Alfred:

Itsuki Fujita

unread,
Mar 10, 2025, 8:30:04 PMMar 10
to Prisms-CPFE-users

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


Before and After Compile 1st-column.png

2025年3月10日月曜日 11:11:35 UTC+9 Itsuki Fujita:

DANISH KHAN

unread,
Mar 11, 2025, 4:51:35 AMMar 11
to Prisms-CPFE-users
Few Suggestions:

1) Open your UpdateAfterIncrement file and see if it looks like the one attached (i.e. it should have reduced quadrature output requests as compared to the original file)

2) Although this may not be the case, but you can also try what Reza suggests in the tutorial videos: (i) first delete the UpdateAfterIncrement file from the folder and (ii) then compile. It throws the error. Then (iii) replace the UpdateAfterIncrement file again and compile again.
Capture.PNG

Itsuki Fujita

unread,
Mar 11, 2025, 5:15:39 AMMar 11
to Prisms-CPFE-users

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


2025年3月11日火曜日 17:51:35 UTC+9 DANISH KHAN:

Itsuki Fujita

unread,
Mar 11, 2025, 7:42:06 PMMar 11
to Prisms-CPFE-users

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


afterincrement ccfile.png
2025年3月11日火曜日 18:15:39 UTC+9 Itsuki Fujita:

Itsuki Fujita

unread,
Mar 11, 2025, 8:41:17 PMMar 11
to Prisms-CPFE-users

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


user defined material model.png

2025年3月12日水曜日 8:42:06 UTC+9 Itsuki Fujita:

Itsuki Fujita

unread,
Mar 13, 2025, 4:27:47 AMMar 13
to Prisms-CPFE-users

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


after compile.png

2025年3月12日水曜日 9:41:17 UTC+9 Itsuki Fujita:
Reply all
Reply to author
Forward
0 new messages