How to use integrated values in equation.cc file

69 views
Skip to first unread message

Andrew Li

unread,
Nov 30, 2023, 5:53:23 PM11/30/23
to PRISMS-PF Users
Hi everyone, 

I am trying to use the integrated value of a field in equation.cc. For example, I would like to use f_tot, which is usually used as a post-processing variable. Another use case would be to use the average value/total sum of the concentration field times a position dependent field. Can anyone give me some recommendations? Thanks!

Best, 
Andrew

David Montiel Taboada

unread,
Nov 30, 2023, 6:30:15 PM11/30/23
to Andrew Li, PRISMS-PF Users
Hello, Andrew

Something like what you describe is done in the recent application allenCahn_conserved. I encourage you to look into the documentation. 

Let me know if you have any questions.

Best,

David

--
You received this message because you are subscribed to the Google Groups "PRISMS-PF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-pf-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-pf-users/034e9b61-e078-45b1-836c-19a9ab57f6c1n%40googlegroups.com.

Andrew Li

unread,
Oct 8, 2024, 4:10:22 PM10/8/24
to PRISMS-PF Users
Hi David, 

I've looked into the allenCahn_conserved application and tried running it, but am getting an error in the customPDE.h file (no member "invM") in the custom solveIncrement function. Is this something that is a real error or am I doing something wrong? I've included the slurm output for your reference.  

Best, 
Andrew
slurm-23829037.out

David Montiel

unread,
Oct 8, 2024, 4:13:56 PM10/8/24
to Andrew Li, PRISMS-PF Users
Hello, Andrew 

I've replied to this question privately, but please reply to my email within this thread so other people can use the information for reference.

Best,

David


Andrew Li

unread,
Oct 8, 2024, 4:16:45 PM10/8/24
to David Montiel, PRISMS-PF Users
Hi David, 

Thanks! I ran the application twice (1 and 8 processors). Both instances give the same error ("No member "invM"). I am using dea...@9.4.2. 

Best,
Andrew

Andrew Li

unread,
Oct 8, 2024, 4:17:19 PM10/8/24
to David Montiel, PRISMS-PF Users
And this the original application with no modifications

Jason Landini

unread,
Oct 8, 2024, 4:33:39 PM10/8/24
to Andrew Li, PRISMS-PF Users
Hi Andrew,

This is a bug on our end. We updated the naming convention on invM.

I'll have a patch out by the end of the day. After that you can update your fork / local repo.

Best,
Jason

David Montiel

unread,
Oct 8, 2024, 4:34:52 PM10/8/24
to Jason Landini, Andrew Li, PRISMS-PF Users
Thank you for looking into this, Jason.

David

Andrew Li

unread,
Oct 8, 2024, 4:43:01 PM10/8/24
to David Montiel, Jason Landini, PRISMS-PF Users
Hi Jason and David, 

Thanks for the update! On a related note, is this custom solveIncrememnt function something I can port directly to other applications such as CH, CHAC, corrosion and etc? Or are additional modifications required?

Best
Andrew

David Montiel

unread,
Oct 8, 2024, 4:49:51 PM10/8/24
to Andrew Li, Jason Landini, PRISMS-PF Users
Hello, Andrew

You could port it but modifying it accordingly to obtain the integrated the field(s) you are interested in each case.

David

Andrew Li

unread,
Oct 8, 2024, 4:51:54 PM10/8/24
to David Montiel, Jason Landini, PRISMS-PF Users
Thanks! I assume that means I just need to create a new integrated field for each global quantity I’m trying to conserve. That’s very convenient. Really appreciate the help!

Jason Landini

unread,
Oct 8, 2024, 4:57:34 PM10/8/24
to Andrew Li, David Montiel, PRISMS-PF Users
Alright the bug should be fixed now. Let me know if you have any other trouble.
Reply all
Reply to author
Forward
0 new messages