Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
issues in expanding the "hydrogen diffusion in metals" example to an axisymmetric model
Posted 2024年12月24日 GMT+8 06:02 Chemical, Structural Mechanics, Material Models 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I'm a novice COMSOL user, so please excuse my lack of expertise.
I'm attempting to adapt the "Hydrogen Diffusion in Metals" example to an axisymmetric model. Specifically, I want to simulate stress-induced hydrogen diffusion in a cylindrical tensile specimen as it begins to neck.
I successfully modeled the necking behavior using the "Voce" plasticity model. Following the example, I incorporated hydrogen diffusion into the simulation. However, I encountered an issue when modifying the External Flux expression.
In the original 2D example, the External Flux is defined as: D_sigma * d(-solid.pm, X) * para
For the axisymmetric model, I changed it to: D_sigma * d(-solid2.pm, X) * para
I assumed this change was necessary because the solid.pm variable is unavailable in axisymmetric simulations.
After making this adjustment, I ran the simulation but encountered the following error:
"Feature: Time-Dependent Solver 1 (sol1/t1) The second argument of the d() operator must be a variable name."
The only differences between the example and my setup are:
- The modified External Flux expression mentioned above.
- My simulation runs from 0 to 1 seconds with 0.01-second increments. The specimen deformation ramps from 0 to 6 mm during this time.
I would greatly appreciate any guidance on resolving this issue.
Thank you, Rashiga