-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkgf.h
More file actions
33 lines (27 loc) · 1.01 KB
/
kgf.h
File metadata and controls
33 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef FIELDS_KGF_H_
#define FIELDS_KGF_H_
#include "core/pde.h"
#include "infra/sim_param.h"
namespace bdm {
namespace skibidy {
// KGF PDE channel.
// Dermal growth factor: high at basement membrane, decays upward.
// Basal keratinocytes read this to modulate G1->S transition.
// Static prescribed profile; no source term, not disrupted by wound.
struct KgfPDE : public PDE {
const char* GetName() const override { return fields::kKGF; }
int GetId() const override { return fields::kKGFId; }
void Init(Simulation* sim) override {
auto* sp = sim->GetParam()->Get<SimParam>();
DefineGrid(sim, sp->kgf_diffusion, sp->kgf_decay);
ModelInitializer::InitializeSubstance(GetId(),
[sp](real_t x, real_t y, real_t z) {
return GridContext::ExpDecay(z, sp->kgf_basal_conc,
sp->kgf_decay_length);
});
MarkPrescribed(sim); // paracrine dermal signal, not free diffusion
}
};
} // namespace skibidy
} // namespace bdm
#endif // FIELDS_KGF_H_