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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: gschaider
Forum: OpenFOAM Community Contributions March 7, 2013, 14:09
Replies: 18
Views: 6,038
Posted By gschaider
Write your own random-number-generator (using...

Write your own random-number-generator (using some text-book implementation). Using the function-plugin-facility you can also use it as "randomAlbert(2)" (or "albertRandom(22)" if you prefer) in your...
Forum: OpenFOAM Community Contributions March 6, 2013, 05:41
Replies: 18
Views: 6,038
Posted By gschaider
Well. rand() uses the Random-class of OpenFOAM...

Well. rand() uses the Random-class of OpenFOAM which in turn uses the random-number generator of the operating system. These generators used to have a bad reputation in terms of the periodicity.
...
Forum: OpenFOAM Community Contributions February 21, 2013, 11:23
Replies: 18
Views: 6,038
Posted By gschaider
Fix by update. Great My bad. That has...

Fix by update. Great



My bad. That has already changed for some time. Now there are two functions: rand(42) which changes during time and randFixed(42) which doesn't


That case can be...
Forum: OpenFOAM Community Contributions February 20, 2013, 11:46
Replies: 18
Views: 6,038
Posted By gschaider
Pleas put output in CODE not QUOTE. That way the...

Pleas put output in CODE not QUOTE. That way the spaces are preserved and I don't have to guess where the ^^ are pointing at

Which version of swak do you use?
Forum: OpenFOAM Community Contributions January 10, 2013, 09:10
Replies: 18
Views: 6,038
Posted By gschaider
That was fast:...

That was fast: http://openfoamwiki.net/index.php/Contrib/swak4Foam/Example_initRandomVelocity

Great. If everyone who got his question answered did this then there wouldn't be a documentation...
Forum: OpenFOAM Community Contributions January 10, 2013, 06:23
Replies: 18
Views: 6,038
Posted By gschaider
Would be nice if you could add an example to...

Would be nice if you could add an example to http://openfoamwiki.net/index.php/Contrib/swak4Foam#Usage_examples (I'm trying to get people to contribute such things that are commonly used in a central...
Forum: OpenFOAM Community Contributions January 9, 2013, 16:49
Replies: 18
Views: 6,038
Posted By gschaider
But it is used by it ;) To create...

But it is used by it ;)

To create reproducible results random always uses the same seed. But you can change that by simply supplying an integer "random(42)" for instance. If you do that for every...
Forum: OpenFOAM Community Contributions January 5, 2013, 18:01
Replies: 18
Views: 6,038
Posted By gschaider
Of course it is. All you've go to do is do a...

Of course it is. All you've go to do is do a simple transformation of the range [0,1) to the range [-0.005,0.005) which is done with <drumroll> "0.01*rand()-0.005" (I think it shouldn't be too hard...
Showing results 1 to 8 of 8

 
Forum Jump

All times are GMT -4. The time now is 15:02.