CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM on two different places on PC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2012, 06:32
Default OpenFOAM on two different places on PC
  #1
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 13
majkl is on a distinguished road
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
majkl is offline   Reply With Quote

Old   June 1, 2012, 09:59
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   June 4, 2012, 06:52
Default
  #3
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 13
majkl is on a distinguished road
Hi Bruno,

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

Michal
majkl is offline   Reply With Quote

Old   June 18, 2012, 03:42
Default
  #4
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 13
majkl is on a distinguished road
Hi Bruno,

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

Michal
majkl 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
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 10 May 13, 2018 18:28
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
Issues with OpenFoam sanjibdsharma OpenFOAM 0 August 14, 2009 08:41
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 13:14


All times are GMT -4. The time now is 02:51.