Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Jigyasa Watwani
/
growth-pattern-control
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7519b35d
authored
Apr 28, 2022
by
Vijay Kumar Krishnamurthy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs. Bois model limit works correctly
parent
df925e32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
fixed_boundaries.json
fixed_boundaries.py
fixed_boundaries.json
0 → 100644
View file @
7519b35d
{
"morphogen"
:
true
,
"resolution"
:
64
,
"system_size_by_2PI"
:
1
,
"elasticity"
:
0.0
,
"viscosity"
:
1.0
,
"friction"
:
1.0
,
"lamda"
:
1.75
,
"diffusion_rho"
:
1.0
,
"turnover_rho"
:
0.0
,
"average_rho"
:
1.0
,
"saturation_rho"
:
1.0
,
"diffusion_c"
:
1.0
,
"turnover_c"
:
0.0
,
"average_c"
:
1.0
,
"noise_level"
:
0.1
,
"timestep"
:
0.05
,
"maxtime"
:
200.0
}
fixed_boundaries.py
View file @
7519b35d
...
...
@@ -51,14 +51,14 @@ class FixedBoundaries(object):
def
reaction_rho
(
self
,
rho
,
trho
):
return
self
.
turnover_rho
*
df
.
inner
(
rho
-
self
.
average_rho
,
trho
)
def
reaction_
rho
(
self
,
c
,
tc
):
def
reaction_
c
(
self
,
c
,
tc
):
return
self
.
turnover_c
*
df
.
inner
(
c
-
self
.
average_c
,
tc
)
def
diffusion_reaction_rho
(
self
,
rho
,
trho
):
return
(
self
.
diffusion_rho
*
df
.
inner
(
rho
.
dx
(
0
),
trho
.
dx
(
0
))
+
self
.
reaction_rho
(
rho
,
trho
))
def
diffusion_reaction_c
(
self
,
c
,
tc
):
return
(
self
.
diffusion_c
*
df
.
inner
(
c
.
dx
(
0
),
tc
.
dx
(
0
))
+
self
.
reaction_
rho
(
c
,
tc
))
return
(
self
.
diffusion_c
*
df
.
inner
(
c
.
dx
(
0
),
tc
.
dx
(
0
))
+
self
.
reaction_
c
(
c
,
tc
))
def
setup_initial_conditions
(
self
,
u0
=
None
,
rho0
=
None
,
c0
=
None
):
if
u0
==
None
and
rho0
==
None
and
c0
==
None
:
...
...
@@ -168,7 +168,6 @@ class FixedBoundaries(object):
# parse data
data
=
np
.
array
(
data
)
print
(
data
.
shape
)
if
self
.
morphogen
:
# u, v, rho, c
return
np
.
split
(
data
,
4
,
axis
=
2
)
...
...
@@ -192,8 +191,6 @@ if __name__ == '__main__':
u
,
v
,
rho
,
c
=
Z
else
:
u
,
v
,
rho
=
Z
print
(
u
.
shape
,
v
.
shape
,
rho
.
shape
)
x
=
fb
.
mesh
.
coordinates
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment