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

Blog Entries

Register Blogs Members List Search Today's Posts Mark Forums Read

Old

Floating Point Math in Bash

Posted March 6, 2013 at 13: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 80 Comments 0 Hisham is offline Edit Tags
Old

Advanced tips for working with the OpenFOAM shell environment

Posted August 28, 2011 at 07:51 by wyldckat
Updated October 14, 2012 at 15:39 by wyldckat

This blog post envisions to explain the advanced usages of OpenFOAM's shell environment. For now, only the most common ideas will be explained here, but the idea is to expand it to a size worthy for then moving to openfoamwiki.net.
  1. New to Linux? Then Google "Linux tutorial" Although, if you are lazy, here's a good start: http://linuxcommand.org/learning_the_shell.php
    Why? Because this blog post currently doesn't explain all of the basics about Linux, only the things more
...
Super Moderator
Views 3395 Comments 4 wyldckat is offline Edit Tags

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