I am having difficulty starting out with FEniCS

Asked by Kyle

Hello FEniCS developers,

I have just recently discovered and started to learn about the FEniCS project. I have spent the majority of my time reading the FEniCS python tutorial pdf which has shown me the capabilities of the package. However, my biggest problem now is determining where and how to start using the program. I load up the FEniCS command shell but do not know where to go from here. There seems to be a gap in the tutorial here, although I definitely could be missing something!

My goal with the program is to solve fluid-structure interaction (FSI) problems (blood flow in the heart). If anyone has any helpful hints regarding the path I should take to solve FSI problem it would be greatly appreciated.

Thank you for your time

Kyle Williston

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Kyle
Solved:
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Wed, Feb 23, 2011 at 07:14:42PM -0000, Kyle Williston wrote:
> New question #146607 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/146607
>
> Hello FEniCS developers,
>
> I have just recently discovered and started to learn about the
> FEniCS project. I have spent the majority of my time reading the
> FEniCS python tutorial pdf which has shown me the capabilities of
> the package. However, my biggest problem now is determining where
> and how to start using the program. I load up the FEniCS command
> shell but do not know where to go from here. There seems to be a gap
> in the tutorial here, although I definitely could be missing
> something!
>
> My goal with the program is to solve fluid-structure interaction
> (FSI) problems (blood flow in the heart). If anyone has any helpful
> hints regarding the path I should take to solve FSI problem it would
> be greatly appreciated.
>
> Thank you for your time

FEniCS is a programming environment so you need to write a program (in
Python or C++) that solves your problem.

If you want to simulate FSI, you could try the FSI code which is
available in the CBC.Solve package. It's currently in development and
we have not yet released a stable version. Download the package from here:

  https://launchpad.net/cbc.solve

Then look inside the directory sandbox/fsi

We expect to polish the code and make a release within a month or so.

--
Anders

Revision history for this message
Kyle (kylekyle) said :
#2

Thank you I will look into CBC.Solve it looks very promising.

I plan to write programs in Python. I have one final question for now regarding this. I am attempting to run the demo.py in the command shell by typing 'python demo.py' however the file is not located in the correct sub-folder. Which folder should I be saving demo files and additional programs I create?

Thank you again.

Kyle

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

On Wed, Feb 23, 2011 at 07:49:15PM -0000, Kyle Williston wrote:
> Question #146607 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/146607
>
> Status: Answered => Open
>
> Kyle Williston is still having a problem:
> Thank you I will look into CBC.Solve it looks very promising.
>
> I plan to write programs in Python. I have one final question for now
> regarding this. I am attempting to run the demo.py in the command shell
> by typing 'python demo.py' however the file is not located in the
> correct sub-folder. Which folder should I be saving demo files and
> additional programs I create?

You should save them in the same directory as where you type 'python
demo.py' or, equivalently, change the directory to where that file is
stored before you run the command.

--
Anders

Revision history for this message
Kyle (kylekyle) said :
#4

Thank you!