Basis functions

Asked by Øystein Sørensen

In the demo http://bazaar.launchpad.net/~dolfin-core/dolfin/main/annotate/head:/demo/pde/neumann-poisson/python/demo.py the statement

R = FunctionSpace(mesh, "R", 0)

is used. But I cannot find the family abbreviated "R" anywhere. What does the "R" stand for?

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Garth Wells
Solved:
Last query:
Last reply:
Revision history for this message
Garth Wells (garth-wells) said :
#1

On 24/07/10 08:48, Øystein Sørensen wrote:
> New question #118804 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/118804
>
> In the demo http://bazaar.launchpad.net/~dolfin-core/dolfin/main/annotate/head:/demo/pde/neumann-poisson/python/demo.py the statement
>
> R = FunctionSpace(mesh, "R", 0)
>
> is used. But I cannot find the family abbreviated "R" anywhere. What does the "R" stand for?
>

"real" number.

In the demo, it's a global Lagrange multiplier.

Garth

Revision history for this message
Anders Logg (logg) said :
#2

On Sat, Jul 24, 2010 at 07:48:27AM -0000, Øystein Sørensen wrote:
> New question #118804 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/118804
>
> In the demo http://bazaar.launchpad.net/~dolfin-core/dolfin/main/annotate/head:/demo/pde/neumann-poisson/python/demo.py the statement
>
> R = FunctionSpace(mesh, "R", 0)
>
> is used. But I cannot find the family abbreviated "R" anywhere. What does the "R" stand for?

It means the real numbers. It's a global space with only one degree of
freedom (a real number). It can be used to add Lagrange multipliers.

--
Anders

Revision history for this message
Øystein Sørensen (oystein-sorensen) said :
#3

Ok, but when I try the statement

>>> R = FunctionSpace(mesh, "R", 0)

I get the error message

UFLException: Unknown finite element "R".

How do I solve this?

Revision history for this message
Best Garth Wells (garth-wells) said :
#4

On Fri, 2010-08-06 at 18:22 +0000, Øystein Sørensen wrote:
> Question #118804 on FEniCS Project changed:
> https://answers.launchpad.net/fenics/+question/118804
>
> Status: Answered => Open
>
> Øystein Sørensen is still having a problem:ke
> Ok, but when I try the statement
>
> >>> R = FunctionSpace(mesh, "R", 0)
>
> I get the error message
>
> UFLException: Unknown finite element "R".
>
> How do I solve this?
>

Update to the most recent release of UFL.

Garth

Revision history for this message
Øystein Sørensen (oystein-sorensen) said :
#5

Thanks Garth Wells, that solved my question.