|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
VKS
Join Date: Jan 2013
Posts: 6
Rep Power: 2 ![]() |
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? |
|
|
|
|
|
|
|
|
#2 |
|
New Member
VKS
Join Date: Jan 2013
Posts: 6
Rep Power: 2 ![]() |
Apologies - the expression I used was
[50.0, ($$Centroid [1] > -2.5) ? -25.0 : 25.0 , 0.0] |
|
|
|
|
|
|
|
|
#3 |
|
Member
KHB
Join Date: Aug 2010
Location: Singapore
Posts: 73
Rep Power: 4 ![]() |
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. |
|
|
|
|
|
![]() |
| Tags |
| field function, marine vehicle, variable force |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 68 | May 22, 2013 18:22 |
| is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
| whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 8 | March 6, 2013 11:41 |
| mean, variance and covariance statistics of any field function on any part. | Subhadeep | STAR-CCM+ | 8 | February 18, 2010 17:19 |
| Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |