Fenics installed, how to start running it?

Asked by Arturo Ortiz Tapia

I have double-checked Fenics is already installed in Ubuntu. However, I cannot find a command, a location, a directory, or a script, which I could type to start running Fenics. I don't expect to see a GUI (it would be nice if such appears though). So, how is it? something like
1) (terminal prompt)Fenics (enter)
2) ./fenics (within a given directory, which I can't find.
3) there is still some compilation to be done, and then a README with running instructions will appear.
4) Something different from any of the above, or their combinations.

Thank you very much indeed

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu fenics Edit question
Assignee:
No assignee Edit question
Solved by:
Arturo Ortiz Tapia
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

sudo find / | grep -i fenic

Thanks

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#2

/media/XiSkorpius/MaRTiN/FeNiCs
/media/XiSkorpius/MaRTiN/FeNiCs/fenics-tutorial.pdf
/usr/share/doc/syfi-doc/manual/fenicsmanual.cls
/usr/share/doc/fenics
/usr/share/doc/fenics/changelog.gz
/usr/share/doc/fenics/copyright
/var/lib/dpkg/info/fenics.md5sums
/var/lib/dpkg/info/fenics.list

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#3

Here it is:
/media/XiSkorpius/MaRTiN/FeNiCs
/media/XiSkorpius/MaRTiN/FeNiCs/fenics-tutorial.pdf
/usr/share/doc/syfi-doc/manual/fenicsmanual.cls
/usr/share/doc/fenics
/usr/share/doc/fenics/changelog.gz
/usr/share/doc/fenics/copyright
/var/lib/dpkg/info/fenics.md5sums
/var/lib/dpkg/info/fenics.list

On 03/28/2012 02:06 PM, actionparsnip wrote:
> Your question #191957 on fenics in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/fenics/+question/191957
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Can you give the output of:
>
> sudo find / | grep -i fenic
>
> Thanks
>
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

ok, what is the output of:

file /media/XiSkorpius/MaRTiN/FeNiCs

Thanks

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#5

That is a folder I created, to put Fenics Tutorials and my outputs.

thanks
On 03/28/2012 03:40 PM, actionparsnip wrote:
> Your question #191957 on fenics in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/fenics/+question/191957
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> ok, what is the output of:
>
> file /media/XiSkorpius/MaRTiN/FeNiCs
>
> Thanks
>
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

DId you install the fenics package? It's available in the repos.....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

sudo apt-get update; sudo apt-get install fenics

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

It's in the universe repo which you may need to enable

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#9

I installed it with both synaptics, and the way you recommended, but I
still don't see a way to invoke fenics.

On 03/28/2012 04:26 PM, actionparsnip wrote:
> Your question #191957 on fenics in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/fenics/+question/191957
>
> actionparsnip proposed the following answer:
> It's in the universe repo which you may need to enable
>
>

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#10

besides, I am behind a proxy, and this apt-get calls won't work most of
the time. Synaptics, however, works.

On 03/28/2012 04:26 PM, actionparsnip wrote:
> Your question #191957 on fenics in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/fenics/+question/191957
>
> actionparsnip proposed the following answer:
> It's in the universe repo which you may need to enable
>
>

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#11

well? after I did the re-installing with synaptics (because command-line won't work behind the proxy), I still don't know how to activate fenics.

Anyone?

Revision history for this message
Arturo Ortiz Tapia (aortizt) said :
#12

I have just realised that FeNics is not a GUI, but a programming environment which can be invoked through Python.

in a terminal I wrote

python

and then

from dolfin import *
mesh = UnitSquare(4, 4)
plot(mesh)
interactive()

And it works. The rest I think must be to follow FeNics tutorials.
Thanks

Revision history for this message
Robert Jackson (robert-jackson-1) said :
#13

I tried the above solution but when I execute the mesh = UnitSquare(4,4) the traceback says UnitSquare is not defined. I am new to both ubuntu linix and Fenincs. Sorry to ask for what is probably hand holding?

Revision history for this message
Johannes Ring (johannr) said :
#14

@Robert: UnitSquare has been renamed to UnitSquareMesh in later versions of FEniCS. Try:

    mesh = UnitSquareMesh(4, 4)

See also the FEniCS documentation: http://fenicsproject.org/documentation/