CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

openFoam in jupyter Notebook-Howto configure properly?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2017, 06:22
Default openFoam in jupyter Notebook-Howto configure properly?
  #1
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 9
jf_vt is on a distinguished road
Hi
The question is in the title.
It seems that some people are already using it:
reconstructPar --> fileName::stripInvalid() called for invalid fileName commandtouse
There are some specific class in PyFoam dedicated to jupyter:
https://openfoamwiki.net/images/0/05...ForTheLazy.pdf (slide 146)


but I cannot find a way to export the OF environment into jupyter.

Configuration: fe40 on ubuntu 16.04 with pyfoam installed- All functional

what I tried from a bash shell:
1 source the OF environment
2 start jupyter notebook
3 in the notebook import PyFoam modules

.. but the PyFoam functions dont find the OF files.
for exemple
print PyFoam.FoamInformation.foamTutorials()

return nothing in jupyter vs proper path in python shell

If somebody could explain how to configure properly the jupyter/OF environment it will be very helpful.

Thanks a lot

JF

Last edited by jf_vt; May 22, 2017 at 08:17.
jf_vt is offline   Reply With Quote

Old   May 22, 2017, 08:27
Default
  #2
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 9
jf_vt is on a distinguished road
reply to my own quesiton

I found:
http://openfoamwiki.net/staticPages/....slides.html#/

that answer my question ( I missed it initially)
I just have to test it now..
JF
jf_vt is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 10:19
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 06:03.