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

Pre-processing

Register Blogs Community New Posts Updated Threads Search

Pre-processing
Old

Initialize a random velocity field with funkySetFields

Posted November 14, 2016 at 13:31 by kindle
Updated February 23, 2017 at 04:05 by kindle

This is useful for me


Quote:
Originally Posted by Andrea1984 View Post
Hi,

I would like to inizialize a random velocity field with funkySetFields. Is it possible?

I've tried something like

{
field U;
expression "vector (0.005*rand(), 0.005*rand(), 0.005*rand())";
}

Do you think this should work?

Thanks in advance


Andrea
And this is link for swak
http://openfoamwiki.net/index.php/Contrib/swak4Foam/Example_initRandomVelocity...
New Member
Posted in Pre-processing
Views 1720 Comments 0 kindle is offline Edit Tags
Old

blockMesh non-uniform grid

Posted November 10, 2016 at 14:32 by kindle

This way we can estimate already order of magnitude.

Quote:
Originally Posted by hjasak View Post
Actually, the grading factor in blockMesh is defined as the ratio of the last to first cell size, which is much better behaved that defining the number of cells and the geometric expansion ratio. I suppose we have both done the same thing :-)

Hrv
New Member
Posted in Pre-processing
Views 2216 Comments 0 kindle is offline Edit Tags
Old

non-uniform boundray condition - solution dynamicCode

Posted October 25, 2016 at 05:12 by kindle
Updated October 25, 2016 at 05:14 by kindle (::pow give a smile face)

Modifying the file 0/U the /incompressible/icoFoam/cavity tutorial.

FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
movingWall
{
type ...
New Member
Posted in Pre-processing
Views 901 Comments 0 kindle is offline Edit Tags
Old

Cylinder Mesh

Posted October 12, 2016 at 11:43 by kindle
Updated October 14, 2016 at 11:04 by kindle

Quote:
Originally Posted by guilherme View Post
hi, how do I do a cylinder with blockmesh? Is it necessary do a quarter of a cylinder and stablish simmetry plane in the lateral faces of it or exists a mean of make a entire cylinder? My cylinder is totally wrong I think.

Could anyone posts a simple mesh to I see?
The first guy attaches cylinderMesh.m4. which is for older Openfoam, writing patches differently.

The second attaches cylinderMesh.txt which is the same as first but compatible with Openfoam...
New Member
Posted in Pre-processing
Views 792 Comments 0 kindle is offline Edit Tags

All times are GMT -4. The time now is 03:43.