|
[Sponsors] |
January 7, 2022, 08:42 |
Prescribe velocity field as essential B.C.
|
#1 |
New Member
Michelle
Join Date: Jan 2022
Posts: 8
Rep Power: 4 |
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 |
|
Tags |
field function, prescribed velocity |
|
|
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 |