|
[Sponsors] |
October 9, 2014, 15:39 |
power law field function
|
#1 |
New Member
Gabriel
Join Date: Oct 2014
Posts: 1
Rep Power: 0 |
I have been trying to run a simulation with the following power law atmospheric velocity profile: u(y) = 6*(y/0.5)^0.23
I have used the following syntax to make a scaler field function: 6*pow(($$Position[1]/0.5),0.23). This is then set as the inlet velocity condition. However, when I run a single iteration I get a floating point exception error pointing to the field function position. If anyone has any idea what the problem could be, your advice would be much appreciated. Thanks |
|
October 23, 2014, 14:42 |
|
#2 |
New Member
Gary
Join Date: Sep 2014
Posts: 4
Rep Power: 11 |
It might be that power law as field function just does not work for this purpose due to numerics, other option is to generate table using this same equation and import that as a table. That will work
|
|
November 11, 2014, 16:48 |
|
#3 |
New Member
Bob
Join Date: Nov 2014
Posts: 1
Rep Power: 0 |
Try $$Centroid instead of $$Position
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
Problem in sampling data of custom field function in ANSYS FLUENT v14 | apek_great | ANSYS | 1 | February 26, 2014 05:10 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 10:20 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |