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

Initial velocity field in StarCCM+

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2008, 16:54
Default Initial velocity field in StarCCM+
  #1
Subhadeep
Guest
 
Posts: n/a
I want to initialize a 3D velocity field to my problem

u(x) = f(y) = a cubic velocity profile

u(y) = 0.0

u(z) = 0.0

I understand the scalar field function but not quite sure how to implement this vector field to my problem.

f(y) will look like :

a*pow($$Position[1],3) + b*pow($$Position[1],2) + c*$$Position[1]

All the vector field function examples are kind of problem specific and I am unable to figure out how I will achieve what I am trying. So if anyone could point me in the right direction then that will be great.

  Reply With Quote

Old   December 18, 2008, 17:17
Default Re: Initial velocity field in StarCCM+
  #2
a
Guest
 
Posts: n/a
The field function you are looking for is $$Centroid not $$Position.

Just paste the code you have written into a new field function definition, and set the initial velocity in the x direction to use that field funciont.
  Reply With Quote

Old   December 18, 2008, 17:22
Default Re: Initial velocity field in StarCCM+
  #3
Subhadeep
Guest
 
Posts: n/a
not quite following what you are trying to say here.

Why should I use centroid first of all?

Secondly, should this be a scalar or vector field function?

if scalar and u(x) only how will I make sure u(y) and u(z) = 0, respectively?

  Reply With Quote

Old   December 21, 2008, 04:40
Default Re: Initial velocity field in StarCCM+
  #4
steve
Guest
 
Posts: n/a
Hi

Make your FF (field function) of type vector not scalar.

Give it the definition [0,0,$YourFieldFunction]

You can use position, it is the vertex position and is known to STAR-CCM+ before you hit initialise. The value of centroid is calculated during initialisation.

With position there can be potentially problems with tolerances particularly if you try a FF containing for example a sqrt operation if a vertex position falls below zero , hence I like to use centroid.

Regards

Steve
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for the initial field 4 lid-driven flow John Main CFD Forum 4 October 22, 2008 06:18
How to set initial field for supersonic flows Qu Kun Main CFD Forum 0 March 4, 2006 08:57
initial field of turbulence Paul Main CFD Forum 1 May 25, 2002 06:53
Q:Vane initial field with tascflow. lhb CFX 1 June 14, 2001 12:39
Initial turbulent field Tony Chen Main CFD Forum 10 July 19, 1999 01:52


All times are GMT -4. The time now is 09:51.