CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM on two different places on PC (http://www.cfd-online.com/Forums/openfoam-installation/102751-openfoam-two-different-places-pc.html)

majkl June 1, 2012 06:32

OpenFOAM on two different places on PC
 
Hi,

I'm using OF on my PC. It's running well.

Now, I need modify some OF libraries, solvers.. Because I'm still solving some cases, I want to create another version of OF on my disc, that I could modify but that DO NOT INFLUENCE the running case.

Can I make a copy on different place on the disc with some edits in global paths. Which global paths variables I need to modify?

Thanks for replies.

Michal

wyldckat June 1, 2012 09:59

Hi Michal,

Here's some reading material: Advanced tips for working with the OpenFOAM shell environment

And here's the key detail already provided on the official site:
Quote:

Originally Posted by http://www.openfoam.org/download/source.php
Code:

export FOAM_INST_DIR=/data/app/OpenFOAM
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile


As you can see, you can modify the folder where it's installed on the fly. On the first link is explained how you can then easily change between versions or at least easily start a new version on each new terminal window.

Best regards,
Bruno

majkl June 4, 2012 06:52

Hi Bruno,

thanks, I'll try it and send my success report, I hope ;-)

Michal

majkl June 18, 2012 03:42

Hi Bruno,

thanks for your tip (I've overlooked this at OpenFOAM sites), it works.

Michal


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