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

Point Set Profile User Function with Field Function Arguments

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2022, 06:47
Default Point Set Profile User Function with Field Function Arguments
  #1
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
Hello,

Is there a list of variables in non-field function form that can be used in a UDF? E.g. the DFBI contact example in the manual creates variables like...

ucarg(calculateForce, "Point", "BodyPosition", sizeof(CoordReal[3]));

This "BodyPosition" has no "$" so we know it's not a field function and is in "Point" form. There must be equivalents for body velocity, force, moment , angular velocity but I cannot find a list of these variables?

I cannot use a field function because the DFBI contact UDF function has type "PointSetProfile" and the manual says "Field function arguments are always arrays of cell or face values, even when the fundamental data that they represent is a single value" and I get an error "User function: Calculate Force, argument: $BodyVelocityReport, type: Cell cannot be evaluated on a point set: DFBI Point Set [User Defined 1]. Please check settings of body coupling", hence arguments cannot be of type cell/ face when the function is "PointSetProfile", hence I cannot use field functions but there must be an alternative?

Hope this makes sense.

Thanks for any help you can provide

Will

P.S. As an alternative, is it possible for me to have the output contact force in "cell"/ "face" form, rather than "Point". This would then mean I can call field functions to my heart's content

Last edited by wcj1n18; March 24, 2022 at 07:43.
wcj1n18 is offline   Reply With Quote

Reply

Tags
argument, contact, dfbi, user defined


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
Define periodic velocity profile by field function at the inlet uhlondon STAR-CCM+ 4 June 24, 2017 05:07
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 03:27


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