|
[Sponsors] |
Star ccm doesn't show user defined function in velocity field function |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Jul 2024
Posts: 2
Rep Power: 0 ![]() |
I am trying to put across a user defined function(parabolic velocity profile) to a rectangular cross section as input velocity(no Z-directional changes, just x and y parabolic velocity). My function doesn't show up at all in the velocity field function tree. How do i apply parabolic velocity using user defined function to the geometry?
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Apr 2009
Posts: 162
Rep Power: 18 ![]() |
Your field function doesn't show up in the tree because it is a scalar type. When creating the field function, select a vector type. Also, make sure to specify dimensions that are appropriate for velocity, and define it in the form of [Vx,Vy,0], where Vx and Vy are equations for x and y components of your custom velocity profile.
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Join Date: Jul 2024
Posts: 2
Rep Power: 0 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Apr 2009
Posts: 162
Rep Power: 18 ![]() |
Position is a vector, so ${Position} should be corrected to $${Position}; this should get you going, assuming "Vm" and "thickness" variables are defined.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Oct 2023
Posts: 6
Rep Power: 3 ![]() |
Hi,
Ensure Variable Definitions: ${Vm}: Maximum velocity ${Position}[1]: y-coordinate (height direction) ${thickness}: Half the height of the rectangle (if the profile is centered at y = 0) Correct the Function: The function should correctly represent the parabolic profile. Your function seems almost correct but ensure that ${Position}[1] ranges correctly within the domain. Here's an example of a scalar field function for a parabolic velocity profile: ${Vm} * (1 - pow(${Position}[1] / ${thickness}, 2)) Create the User-Defined Field Function: Go to Tools > Field Functions. Right-click and select New > Field Function. Name the field function (e.g., ParabolicVelocity). Set the function type to Scalar. Define the function using the above expression. Assign the Field Function to the Inlet Boundary: Go to Regions > Boundaries and select the boundary where you want to apply the velocity. Under the Physics Conditions tab, set the Velocity Specification to Field Function. For the Velocity property, select the user-defined field function (ParabolicVelocity) you created. Example Implementation: If ${Vm} is 1 m/s and ${thickness} is 0.05 m (assuming the height of the rectangular cross-section is 0.1 m), your function would look like: 1 * (1 - pow(${Position}[1] / 0.05, 2)) |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Point Set Profile User Function with Field Function Arguments | wcj1n18 | STAR-CCM+ | 0 | March 23, 2022 05:47 |
Wrong units of user defined field function | FliegenderZirkus | FLUENT | 0 | July 19, 2020 11:21 |
velocity field function in star ccm | rahulpawar | STAR-CCM+ | 2 | September 21, 2016 02:55 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |