|
[Sponsors] |
How to generate a random number between 0 and 1 in openFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 23, 2023, 04:31 |
How to generate a random number between 0 and 1 in openFOAM?
|
#1 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Hello everyone
I am using OF21 and I do not know how to generate a random number between 0 and 1. I tried to use Code:
sample01() https://www.openfoam.com/documentati...8C_source.html Thanks, Farzad |
|
January 26, 2023, 09:02 |
|
#2 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9 |
Check this answer: Random number generation
__________________
"When in doubt, use brute force." -- Ken Thompson |
|
Tags |
of21, random number, sample01 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
use the message in macro DEFINE_PROFILE with parallel processor | alireza_T | Fluent UDF and Scheme Programming | 3 | May 11, 2022 03:08 |
Foam-Extend 4.0 simpleFoam motorbike parallel error? | EternalSeekerX | OpenFOAM Running, Solving & CFD | 0 | May 10, 2021 05:55 |
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library | aylalisa | OpenFOAM Installation | 23 | June 15, 2015 15:49 |
[blockMesh] --> foam fatal error: | lillo763 | OpenFOAM Meshing & Mesh Conversion | 0 | March 5, 2014 11:27 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |