Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85976555
mechanicalForcesUdi.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 3, 09:47
Size
709 B
Mime Type
text/x-c++
Expires
Sat, Oct 5, 09:47 (2 d)
Engine
blob
Format
Raw Data
Handle
21312374
Attached To
R9411 tisue modeling
mechanicalForcesUdi.hpp
View Options
#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
Log In to Comment