Initialize variable value of newly activated element #29015
Replies: 2 comments 14 replies
-
We have not implemented this behavior afaik. In the current setup, I dont think this is hard to implement. I would do it with a NeighborElementsFunctorIC, which would be an IC that looks at the neighbor element values, possibly with a multi-layer stencil, and computes the average of neighbor values within the same subdomain (the new subdomain of the element being switched) |
Beta Was this translation helpful? Give feedback.
-
You are right about variables being initialized to their initial conditions. You can selectively initialize certain subdomains using the
As to your second question:
I don't believe that's the case, at least your observation is not the intended behavior. However, I see a potential issue when inspecting the source code. In _fe_problem.projectInitialConditionOnCustomRange(reinitializedElemRange(displaced),
reinitializedBndNodeRange(displaced)); It calls the I agree this is an issue, and we should at least allow users to control the behavior on shared nodes. |
Beta Was this translation helpful? Give feedback.
-
Check these boxes if you have followed the posting rules.
Question
Hello everyone,
I am currently working on a additive manufacturing process simulation project using the MOOSE. I got some problems when I tried to initialize/reinitialize variable value of newly activated elements.
According to the MOOSE documentation on ElementSubdomainModifier: https://mooseframework.inl.gov/source/meshmodifiers/ElementSubdomainModifier.html
The left part of the below picture shows a temperature initialization result of a newly added layer (Layer 2) within the ABAQUS software. For the newly added layer, Layer 2, the bottom nodes of this layer are shared with Layer 1 (top nodes of layer 1). ABAQUS initializes the temperature of Layer 2 by setting the specified value, except for these shared nodes, as the temperature of these nodes is kept the same as the value at the end of Layer 1.
As for MOOSE, based on my observations, since all elements move from the inactivated domain to the activated domain, all the nodes are initialized. For those shared nodes, it seems that MOOSE overrides their previous/existing values directly with the specified value. (If I am wrong, please correct me).
I know there might be physical meaningful for both these two initializtion methods. But what should I do if I want to achieve the same initialization as in ABAQUS?
Beta Was this translation helpful? Give feedback.
All reactions