New Kernel terms in Diffusion equation #21977
-
Hi, I am trying to form an analogy between the heat and diffusion equation, can you please help me sort the additional terms involved? Please note this is a coupled problem, where the diffusion depends on the stress and concentration gradient, please suggest solving it. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 367 replies
-
Hello You should follow the application development tutorial, these terms are not very complicated you could code that up. Are these all regular field variables (eg 1 value per quadrature point) or are some of them vectors/tensors? Guillaume |
Beta Was this translation helpful? Give feedback.
-
The stress gradient term need some attention. The rest terms are straightforward. |
Beta Was this translation helpful? Give feedback.
-
Term 2: I tried implementing the coupled time derivative Kernel with function using DerivativeParsedMaterial, but there is an error, can you suggest how do I correct it, both C_t(trap_conc) and \theta-t are the coupled variable with the time derivative variable C_l(lattice_conc)? |
Beta Was this translation helpful? Give feedback.
-
*** ERROR *** Solve failed and timestep already at or below dtmin, cannot continue!
|
Beta Was this translation helpful? Give feedback.
-
I dont think they should be material properties. |
Beta Was this translation helpful? Give feedback.
-
Hi @GiudGiud , I have tried to implement this equation in MOOSE (strain rate term not yet developed), could you please suggest why there is an issue with the convergence? |
Beta Was this translation helpful? Give feedback.
-
Hi @GiudGiud, I change it to NEWTON and checked the Jacobian. Please note carefully, I am confused about somethings:
2.2. Then I scaled the BCs to a lower value by dividing by 1000, and then it converges. But when I use the actual BCs, it is converging in some time step, while not in others. Could you suggest if it is the right way to do, or is there are functions materials to define the stress-strain relation?please suggest, thanks!
|
Beta Was this translation helpful? Give feedback.
-
Great, some few doubts:
|
Beta Was this translation helpful? Give feedback.
-
You only need now start profiling your code. Go here: Profiling MOOSE Code and skip down to "CPU Profiling" |
Beta Was this translation helpful? Give feedback.
-
Hi @GiudGiud , Can you explain this doubt? I am going over this tutorial (https://mooseframework.inl.gov/modules/heat_conduction/tutorials/introduction/therm_step03.html) where they solve this heat conduction equation: Which of these two kernels (
|
Beta Was this translation helpful? Give feedback.
-
Hi @GiudGiud , thanks. Can you tell me how to apply a conditional BC. Say I want to load a boundary with a load, force_y = 10*t for time 1 sec, and then keep it constant at 10 N, but continue the analysis for total 60 sec for only diffusion to take place, please suggest. |
Beta Was this translation helpful? Give feedback.
Hello
You should follow the application development tutorial, these terms are not very complicated you could code that up.
https://mooseframework.inl.gov/getting_started/examples_and_tutorials/tutorial01_app_development/index.html
Are these all regular field variables (eg 1 value per quadrature point) or are some of them vectors/tensors?
Guillaume