CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM on two different places on PC (

majkl June 1, 2012 06:32

OpenFOAM on two different places on PC

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.


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:

Originally Posted by

export FOAM_INST_DIR=/data/app/OpenFOAM
[ -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,

majkl June 4, 2012 06:52

Hi Bruno,

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


majkl June 18, 2012 03:42

Hi Bruno,

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


All times are GMT -4. The time now is 21:55.