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

Help with Field Function describing Force

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2013, 04:25
Default Help with Field Function describing Force
  #1
New Member
 
VKS
Join Date: Jan 2013
Posts: 6
Rep Power: 13
VinayKS is on a distinguished road
Hi,

I am attempting to model the motion of a vehicle that behaves as follows -- While above a certain Depth (say, 2.5m), there is a force acting downwards. And when it goes below 2.5m, the force begins to act upwards.

I have tried modeling this by using a field function for a Force acting on the CM of the object. However, I am getting the following error --

"Error: field function 'Simulation>BodyManager>Body("Body 1")>ExternalForceAndMomentManager>ExternalForceCM( "Force CM 1")>VectorPhysicalQuantity>InlineFieldFunction("In lineFieldFunction")' compilation error: syntax error
Cannot evaluate expression"

The expression I am using is

[50.0, ($$Centroid [1] > -2.5) ? -25.0, 0.0]

This is given in the DFBI --> 6-DOF Bodies --> External Forces and Moments --> <Name of Force> --> Force space.

Any idea why this is happening?
VinayKS is offline   Reply With Quote

Old   March 12, 2013, 04:27
Default
  #2
New Member
 
VKS
Join Date: Jan 2013
Posts: 6
Rep Power: 13
VinayKS is on a distinguished road
Apologies - the expression I used was

[50.0, ($$Centroid [1] > -2.5) ? -25.0 : 25.0 , 0.0]
VinayKS is offline   Reply With Quote

Old   March 12, 2013, 23:59
Default
  #3
Senior Member
 
KHB
Join Date: Aug 2010
Location: Singapore
Posts: 118
Rep Power: 16
lava12005 is on a distinguished road
The centroid field function is used for getting the centroid of the mesh.
You need to refer to the centroid of the vehicle I believe.
lava12005 is offline   Reply With Quote

Reply

Tags
field function, marine vehicle, variable force


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
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 11:05
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 08:15
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
mean, variance and covariance statistics of any field function on any part. Subhadeep STAR-CCM+ 8 February 18, 2010 18:19
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


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