4#include "sfh/constants.h"
8#pragma warning( disable : 4251 )
16 inline static double DragForce(
double Rho,
double Cd,
double Dsphere,
double Dcable,
double Ampvel,
double Vel)
18 return 1./8. * Rho * sfh::pi* Ampvel * Cd * Dsphere * (Dsphere- Dcable/sfh::pi)*Vel;
21#ifdef FH_VISUALIZATION
22 inline static void CreateOgreSphere(Ogre::SceneManager* SceneManager, Ogre::String SphereName, Ogre::SceneNode** pNode, Ogre::Entity** pEntity,
double Diameter=1, Ogre::String MaterialName=
"DiffuseSpecular")
24 *pNode = SceneManager->getRootSceneNode()->createChildSceneNode( SphereName +
"Node");
25 *pEntity = SceneManager->createEntity( SphereName+
"Entity",
"fhSphere.mesh" );
26 (*pNode)->attachObject( *pEntity );
27 (*pNode)->scale(
static_cast<Ogre::Real
>(Diameter),
static_cast<Ogre::Real
>(Diameter),
static_cast<Ogre::Real
>(Diameter) );
28 (*pEntity)->setMaterialName(MaterialName);
Definition: CSphereBase.h:14