# New space for FreeFEM

**URL:** https://community.freefem.org/t/new-space-for-freefem/3624
**Category:** General Discussion
**Created:** [December 12, 2024, 9:24am UTC](https://community.freefem.org/t/new-space-for-freefem/3624 "2024-12-12T09:24:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![candy](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@candy](https://community.freefem.org/u/candy)
#### Post date: [December 12, 2024, 9:24am UTC](https://community.freefem.org/t/new-space-for-freefem/3624/1 "2024-12-12T09:24:50Z")

</div>

Hello, everyone! Is there a space like this? The space of functions which are constant over the whole domain. It is employed to model concepts such as global constraints. Any comments are welcome.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/d/d89ac776c2585493d62346fdf90d179676b4c930.png)

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [December 12, 2024, 4:30pm UTC](https://community.freefem.org/t/new-space-for-freefem/3624/2 "2024-12-12T16:30:23Z")

</div>

This problem is solved in the following example: [FreeFem-sources/examples/tutorial/Laplace-lagrange-mult.edp at master · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/Laplace-lagrange-mult.edp).

---

<div class="post-metadata">

### Author: ![candy](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@candy](https://community.freefem.org/u/candy)
#### Post date: [December 13, 2024, 2:08am UTC](https://community.freefem.org/t/new-space-for-freefem/3624/3 "2024-12-13T02:08:00Z")

</div>

Many thanks, this is a good way. But it needs the matrix, is not friendly for comlpex problem.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [December 13, 2024, 5:25am UTC](https://community.freefem.org/t/new-space-for-freefem/3624/4 "2024-12-13T05:25:05Z")

</div>

What do you mean? In all cases, you need to solve a linear system.

---

<div class="post-metadata">

### Author: ![candy](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@candy](https://community.freefem.org/u/candy)
#### Post date: [December 13, 2024, 6:47am UTC](https://community.freefem.org/t/new-space-for-freefem/3624/5 "2024-12-13T06:47:03Z")

</div>

I’m sorry for misleading you. For comlpex problems, I prefer to write their schemes rather than their matrix form. Thus, in my opinion, maybe a new space is better.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [December 13, 2024, 6:56am UTC](https://community.freefem.org/t/new-space-for-freefem/3624/6 "2024-12-13T06:56:14Z")

</div>

What schemes? What complex problems? Your question is extremely vague, so I cannot give you a precise answer. But again, in the end, you’ll need to solve a linear system, adding a “new space” just means in algebraic form to add a set of equations, so it’s perfectly doable in FreeFEM using the block (MATLAB-like) syntax, which is, in my opinion, not so complex and closely related to the mathematical formulation.
