# Problem with PG Linear Mortar with Calculix 2.22 in Prepomax

**URL:** <https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243>\
**Category:** Bug Reports\
**Created:** [December 6, 2024, 8:40pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243 "2024-12-06T20:40:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpenSourceFEA](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@OpenSourceFEA](https://prepomax.discourse.group/u/OpenSourceFEA)\
**Post date:** [December 6, 2024, 8:40pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/1 "2024-12-06T20:40:46Z")

</div>

Hi

I use PG Linear mortar for the smoother CPRESS for contact interaction with curved surfaces. I am not sure if the problem with ccx 2.22 or prepomax inp file generation, when I submit the job, it throws an error. This does not happen when I select ccx 2.21 or lower. This is the error I get

\*WARNING reading \*CONTACT PAIR: parameter not recognized:  
TYPE=PGLINMORTAR  
\*WARNING reading \*CONTACT PAIR. Card image:  
\*CONTACTPAIR,INTERACTION=CONTACT,TYPE=PGLINMORTAR

\*ERROR reading \*CONTACT PAIR  
no TYPE specified  
\*ERROR reading \*CONTACT PAIR. Card image:  
\*CONTACTPAIR,INTERACTION=CONTACT,TYPE=PGLINMORTAR

\*WARNING reading \*CONTACT PAIR: parameter not recognized:  
TYPE=PGLINMORTAR  
\*WARNING reading \*CONTACT PAIR. Card image:  
\*CONTACTPAIR,INTERACTION=CONTACT,TYPE=PGLINMORTAR

\*ERROR reading \*CONTACT PAIR  
no TYPE specified  
\*ERROR reading \*CONTACT PAIR. Card image:  
\*CONTACTPAIR,INTERACTION=CONTACT,TYPE=PGLINMORTAR

I do use surface to surface contact method for most of my models, but for curved surfaces PGlinmortar is my goto method. I can circumvent this error by using ccx2.21 but I just want to report this error with ccx2.22 and want to know why

Thanks

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [December 6, 2024, 9:07pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/2 "2024-12-06T21:07:59Z")

</div>

This contact type and its parameter were removed in CalculiX 2.22. From the ccx logbook:

> 5 Mar 2024 - removed LINMORTAR and Petrov-Galerkin Mortar

You can use regular Mortar contact instead.

---

<div class="post-metadata">

**Author:** ![OpenSourceFEA](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@OpenSourceFEA](https://prepomax.discourse.group/u/OpenSourceFEA)\
**Post date:** [December 6, 2024, 9:25pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/3 "2024-12-06T21:25:36Z")

</div>

Hi thanks for the reply. Do you know why they were removed? Long back I played with all the 5 methods to get a smoother cpress distribution and found the PG one much better than the lin mortar or regular mortar while surface to surface and node to surface were nowhere near to any of the mortar contact methods. So that is why I was wondering what happened to it in the newest version. I now have to check the regular mortar from 2.22 with the pg linear mortar in lower versions if they are comparable and acceptable enough.

Thanks

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [December 6, 2024, 9:32pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/4 "2024-12-06T21:32:56Z")

</div>

You would have to ask Guido Dhondt (ccx dev). I guess he had a good reason. The logbook also mentions some improvements of the regular Mortar contact.

---

<div class="post-metadata">

**Author:** ![OpenSourceFEA](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@OpenSourceFEA](https://prepomax.discourse.group/u/OpenSourceFEA)\
**Post date:** [December 6, 2024, 9:36pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/5 "2024-12-06T21:36:42Z")

</div>

I guess I have to test it myself which I am going to. Maybe you can lock this thread, not much of a bug of Prepomax, but a feature of Calculix.

Thanks for your time and reply.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [December 7, 2024, 4:29am UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/6 "2024-12-07T04:29:42Z")

</div>

maybe, PrePoMax need to adapt default included solver versions to suppress this error. User still can access the feature by keyword editor and old CalculiX versions.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [December 8, 2024, 7:11pm UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/7 "2024-12-08T19:11:20Z")

</div>

I was not aware that some contact models were removed. Since only the latest CalculiX version is supported by PrePoMax, I will follow its features and remove the deprecated contact models.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [January 22, 2025, 10:17am UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/8 "2025-01-22T10:17:00Z")

</div>

I have removed LINMORTAR and PGLINMORTAR contacts and added Massless contact type. The changes will be available in v2.2.10.

I am closing this topic.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [January 22, 2025, 10:17am UTC](https://prepomax.discourse.group/t/problem-with-pg-linear-mortar-with-calculix-2-22-in-prepomax/2243/9 "2025-01-22T10:17:15Z")

</div>

Closed on January 22, 2025, 10:17am UTC


