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

Notes for OpenFOAM!

Register Blogs Community New Posts Updated Threads Search

In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post.
Old

Error Compiling OpenFOAM .. Linker Error ld "--add-needed is not supported"

Posted October 21, 2013 at 16:44 by Hisham (Notes for OpenFOAM!)

If an error occurs while compiling OpenFOAM from source that has to do with the "linker" ld does not support the --add-nedded option (Read more at: http://www.openfoam.org/mantisbt/view.php?id=685 and http://www.cfd-online.com/Forums/ope...roblem-ld.html).

The problem summary:

The 'nixOS has two linker programs ld.bfd and ld.gold. They both are situated in /usr/bin/. The /usr/bin/ld is a link to either. If this...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 3850 Comments 0 Hisham is offline Edit Tags
Old

OpenFOAM Installation for Multiple Users

Posted March 9, 2013 at 09:26 by Hisham (Notes for OpenFOAM!)
Updated March 10, 2013 at 10:47 by Hisham

If OpenFOAM was installed on a single user account using the OpenCFD binaries then for another user to have access to it is very simple. All one needs to do is to add an alias of the installation in the new user's .bashrc file

Code:
OFver='source /opt/openfoamver/etc/bashrc'
If, on the other hand, OpenFOAM (or OpenFOAM-ext) was compiled on a user account (say the user name is MrX) and a new user (MrY) wants to use the same installation, then:

1. MrX must make sure...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 3744 Comments 2 Hisham is offline Edit Tags
Old

Floating Point Math in Bash

Posted March 6, 2013 at 14:35 by Hisham (Notes for OpenFOAM!)

This post is copied from: http://www.linuxjournal.com/content/...oint-math-bash
Floating Point Math in Bash, By Mitch Frazier

To use floating point arithmetic in Bash one can source this script (i.e. source floatSupport.sh). The floatSupport.sh is:

Code:
#!/bin/bash 
# 
# Floating point number functions. 

##################################################################### 
# Default scale used by float functions.
...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 1983 Comments 0 Hisham is offline Edit Tags
Old

Gmsh Functions 1

Posted January 21, 2013 at 07:18 by Hisham (Notes for OpenFOAM!)
Tags gmsh

Gmsh is a powerful mesh generator. One of its strength points is the use of both scripting and GUI functionality. Scripting has two neat features: Function : lets one define a function and call it several times. Include : lets one include other scripts into the geometry file script.

Assume we have a Mesh.geo file that we have for the geometry. You can start off by:

Code:
Include "Functions.geo" ;
The Functions.geo file is a file that has some function...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 3292 Comments 0 Hisham is offline Edit Tags
Old

Processor Affinity to Enhance Speed

Posted September 11, 2012 at 12:09 by Hisham (Notes for OpenFOAM!)
Updated September 12, 2012 at 11:02 by Hisham

To enhance the speed of running a solver one can use a "hard" assignment of the job to a specific core. This reduces the work needed to switch jobs between cores and enhances the speed. It is really neat if you need to do some other work on the workstation while the run is going on in the background.

Install:
Code:
# apt-get install schedtool
Use:
Code:
$ schedtool -a 5 10640
This command assigns job 10640...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 1890 Comments 0 Hisham is offline Edit Tags

All times are GMT -4. The time now is 12:19.