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

Prescribe velocity field as essential B.C.

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 7, 2022, 08:42
Default Prescribe velocity field as essential B.C.
  #1
New Member
 
Michelle
Join Date: Jan 2022
Posts: 8
Rep Power: 4
Michelle197 is on a distinguished road
Hi all,

I am new to star ccm+ so this is probably a stupid question.
I have a cube and I want to prescribe the velocity on the cube faces to create a uniaxial extensional flow: velocity = [strain_rate*x,-strain_rate/2*y,-strain_rate/2*z]. So what I did is created a velocity_inlet boundary condition on the surfaces. Since the velocity depends on the local coordinates on the surfaces I thought it was best to define it via a field function, but I can not figure out how this works. I want to have a strain_rate of 1, but I don't know how to set a user variable. I tried to define a user field function but I keep getting syntax errors because the dimension is not right: [$$Position[1]*1, -0.5*$$Position[2],-0.5*$$Position[3]].

I also saw that there is a velocity field function, so I tried to add that to the boundary condition, but now I can't find how to define the velocity.

Can anyone please help me out? Thanks in advance!

Kind regards,
Michelle
Michelle197 is offline   Reply With Quote

 

Tags
field function, prescribed velocity


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
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Same pressure gradient but different velocity field TurbJet Main CFD Forum 22 April 28, 2018 03:35
potential flows, helmholtz decomposition and other stuffs pigna Main CFD Forum 1 October 26, 2017 08:34
velocity field of MRF, GGI and rotatingWallVelocity tonky OpenFOAM Programming & Development 1 October 14, 2016 11:04
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20


All times are GMT -4. The time now is 20:24.