Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87472508
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
Sat, Oct 12, 21:18
Size
709 B
Mime Type
text/x-c++
Expires
Mon, Oct 14, 21:18 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21602304
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