GetDisplacement in PlugIn_InitSensor

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

GetDisplacement in PlugIn_InitSensor

LE Ba Danh
 Hi Damien,

I want to make a "GetDisplacement" in PlugIn_initSensor of my function in inp file, as:

 <PlugIn Id="_ImposeDisplacement" X="0" Y="5e-9*it*-1" Z="0" Set="Matrix"/> 

In GranOO 0.0, it writes:

inline double
InitSensor::GetDisplacement() const
{  
  const Util::MathFunction* mf = Util::XmlObjectManager<Util::MathFunction>::GetItem(mathFunctionDispl_);
  assert(mf != 0);
  return mf->UpdateValue();
}

How to do this function in GranOO2.0?

Thank you,
Danh

Reply | Threaded
Open this post in threaded view
|

Re: GetDisplacement in PlugIn_InitSensor

Damien André
Administrator
Hello, simply use common sensors for monitoring this displacement
DA
Reply | Threaded
Open this post in threaded view
|

Re: GetDisplacement in PlugIn_InitSensor

LE Ba Danh
Thank Damien,

Danh