How to define an integral based function as the material properties #16852
-
Hi all, I was wondering there is any material class as same as the "DerivativeParsedMaterial" function to implement an integral base function (like this) to calculate parameters in the material block? Or I have to define user objects to compute this function? If so, is there any suggestion or example? Thanks in advanced |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello Are you looking to parse this function from the input file? I dont know if FParser can parse that. @roystgnr will know more. Depending on what a1 is, you may also be able to define this as a new Function and call it from a FunctionMaterial. Best, |
Beta Was this translation helpful? Give feedback.
-
To explain a bit more... In fact, C* and a1 are unknown material properties that changed over time and are the input parameters for the primary analysis. I will solve C* in a separate function; then, it will be used to compute a1 in the attached equation for each time step and then update it in the next step. My difficulty is to find a relevant function to define this equation (includes an integral). |
Beta Was this translation helpful? Give feedback.
-
Hello We would welcome the contribution as a general utility to integrate functions. See framework/src/utils for examples of these utility functions. Guillaume |
Beta Was this translation helpful? Give feedback.
Hello
Are you looking to parse this function from the input file? I dont know if FParser can parse that. @roystgnr will know more.
I would recommend computing it in your own material class, and just supply the parameters / variables in the input.
Depending on what a1 is, you may also be able to define this as a new Function and call it from a FunctionMaterial.
But this is only worth the effort if you are using this function in other places.
Best,
Guillaume