# Is it possible to deactivate elements

**URL:** <https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074>\
**Category:** Uncategorized\
**Created:** [April 10, 2022, 2:37pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074 "2022-04-10T14:37:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobody-86](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nobody-86](https://calculix.discourse.group/u/Nobody-86)\
**Post date:** [April 10, 2022, 2:37pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/1 "2022-04-10T14:37:46Z")

</div>

Hello there,

I am looking for a way to deactivate elements when a limit criterion is reached. I still need to find out the limit criterion, but currently I think that it will be either a certain stress or strain.

It would be elegant to exclude the element directly from the stiffness matrix, but if this is not possible, an alternative would be to set the stiffness to zero (or to something very small, so that the solver can still solve the matrix).

Thank you!

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [April 10, 2022, 3:59pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/2 "2022-04-10T15:59:38Z")

</div>

Such functionality is not implemented in CalculiX but you could use the UMAT subroutine to zero the stiffness of failed elements.

Here’s a previous discussion about this: [Element Removal in CalculiX for Fracture](https://calculix.discourse.group/t/element-removal-in-calculix-for-fracture/520)

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [April 11, 2022, 8:41am UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/3 "2022-04-11T08:41:49Z")

</div>

Hi,

Have youy explore the card \*MODEL CHANGE,TYPE=ELEMENT, REMOVE ?  
Manual v2.19 part 7.85 \*MODEL CHANGE

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [April 11, 2022, 11:13am UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/4 "2022-04-11T11:13:19Z")

</div>

I’m afraid that it won’t work in this case because it only removes elements that are initially defined by a user. Here the goal is to deactivate/delete elements dynamically, based on a failure criterion.

---

<div class="post-metadata">

**Author:** ![Nobody-86](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nobody-86](https://calculix.discourse.group/u/Nobody-86)\
**Post date:** [April 11, 2022, 2:41pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/5 "2022-04-11T14:41:21Z")

</div>

Hello and thanks for the suggestions.

\*MODEL CHANGE doesn’t seem to be meant for my case, because it activates contact elements. But I want to disable solid elements.

I have had a look at the User Material help ([http://web.mit.edu/calculix\_v2.7/CalculiX/ccx\_2.7/doc/ccx/node255.html](http://web.mit.edu/calculix_v2.7/CalculiX/ccx_2.7/doc/ccx/node255.html) as well as the chapter 8.5 linked there), but can’t really figure out how to define one. Could someone give me a recommendation on how best to get started with this?

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [April 11, 2022, 3:03pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/6 "2022-04-11T15:03:48Z")

</div>

Manual v2.19 part 7.85 \*MODEL CHANG descrives also elements removal.??¿

\*MODEL CHANGE TYPE=ELEMENT, REMOVE (or ADD)  
3,4,5 (List of elements and/or sets of elements to be activated or deactivated)

Remove the elements 3,4,5 at the beggining of the STEP

---

<div class="post-metadata">

**Author:** ![Nobody-86](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nobody-86](https://calculix.discourse.group/u/Nobody-86)\
**Post date:** [April 11, 2022, 3:38pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/7 "2022-04-11T15:38:52Z")

</div>

That is interesting. I still have CCX2.16. It says that \*MODEL CHANGE only works for contact elements. In the help of 2.19 it actually says that all elements can be deactivated. Thanks for the correction.

That would really simplify the whole thing. However, there is still the challenge to combine all elements for which the error criterion (e.g. a certain elongation) to one set.

I don’t know of any command that can query the results of the last calculation step while solving.

---

<div class="post-metadata">

**Author:** ![jbr](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jbr](https://calculix.discourse.group/u/jbr)\
**Post date:** [April 17, 2022, 3:27pm UTC](https://calculix.discourse.group/t/is-it-possible-to-deactivate-elements/1074/8 "2022-04-17T15:27:47Z")

</div>

> [@Nobody-86](#):
>
> I don’t know of any command that can query the results of the last calculation step while solving.

Could you write a UMAT that calls the \*MODEL CHANGE or something like that?
