|
[Sponsors] |
August 7, 2010, 02:45 |
How to implement power in OpenFoam?
|
#1 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16 |
Hello
I want to implement power "m" in a function in openFoam 1.6 and I have an error message that said I have to define m as a "double" while now I have "double&". "m" definition is as follows: scalar x0=0.5; double x=centres[celli].x(); double m=pow(x-x0,10)+1; scalar y0=0.1; scalar a=0.5; double b=1-pow((x-x0)/a,2); what is the bug of my code? |
|
Tags |
openfoam, power function |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |