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

Minutely tweaking an installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2023, 13:44
Default Minutely tweaking an installation
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
Hi everybody

I have a successful foam-extend/4.0 installation since 2019 and I don't want to tamper with it but I would like to modify a source file in its /src/ folder and compile it. So I am first thinking of copying this installation like this

cp -r myorigfe40/ mycopyfe40/

and of course only work with this copy. In other words I would do

source etc/bashrc

from the copy before running my solvers.

I guess everything I say up to now depends on whether or on the installation of openfoam is location independent. So that is the first question.

Secondly, if it is location independent, can I really compile just one source file in the copy of this installation without having to rebuild openfoam from all its source files in the copy folder ?

Thank you so much for your consideration
celestial is offline   Reply With Quote

Old   March 24, 2023, 15:32
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
Well, as far as foam-extend is concerned, running

source etc/bashrc

from the copy

did not change the value of $USER_LIBBIN

So, that answers my first question: It is not location independent. The only kind of copy that would work is an exact mirror from a server to another in any institution that would install the same OS and dependencies on all nodes.

Therefore, the 2nd question does not make sense anymore. Instead, one should ask if one can compile just one source file in the original installation. I will have to experiment this on a mirror site. However, it is certainly advisable to rebuild the whole of openfoam (whatever the proposed change is) when the original installation is old (as in my case - 4 years) because nobody really remembers what were the institution's OS and dependencies versions at the time.

Hopefully, this clarifies the situation for anybody who might consider modifying openfoam for his own use in the future
celestial 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
Ansys Installation on Docker Container mohsen.shiea ANSYS 11 March 14, 2024 11:18
how do i fix installation error of ansys 19.0 on ubuntu 18.04 rid_taki ANSYS 15 June 7, 2021 06:32
[foam-extend.org] A smooth installation of foam-3.0-extend on OpenSUSE 13.1 64-bits cookcaptain OpenFOAM Installation 7 May 26, 2015 11:22
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 14:53.