Page MenuHomec4science

mechanicalForcesUdi.hpp
No OneTemporary

File Metadata

Created
Thu, Oct 3, 09:47

mechanicalForcesUdi.hpp

#ifndef __MECHANICAL_FORCES_UDI_H__
#define __MECHANICAL_FORCES_UDI_H__
#include <iostream>
#include <boost/array.hpp>
#include "mechanicalForces.hpp"
class MechanicalForcesUdi:public MechanicalForces{
protected:
double *m_area0;
double k_polarity;
protected:
void dSpecialEnergy(Cell *c,const state_type &y,state_type &dydt);
public:
void operator()(const state_type &y, state_type &dydt, const double t);
void setArea0(double *area0){m_area0 = area0;}; // avoids copying the entire array
float area0(Cell *c){return m_area0[c->id()];};
virtual void updateSignal(const state_type &y);
void setParams(const double *par)
{k_area = par[0];k_perim= par[2];k_polarity=par[1];};
};
#endif

Event Timeline