Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plots | |
gr() | |
const N=60 | |
const C=convert(Int,N/2) | |
grid=zeros(N,N) | |
grid[C,C]=1.0 | |
const motion=[[1,0],[0,1],[-1,0],[0,-1]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plots | |
using LinearAlgebra | |
using Random | |
Random.seed!(2018) | |
gr(size=(300,300),titlefont=font("sans-serif",9)) | |
module Boids | |
struct Param | |
d::Int64 #dimention |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Swarm Oscillators | |
#三浦岳、発生の数理、京都大学学術出版会、2015、あとがき | |
#Julia v1.0 | |
using LinearAlgebra | |
using Plots | |
gr(size=(340,300),titlefont=font("sans-serif",9)) | |
const n=50 | |
const L=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BZ-reaction | |
#reference:http://discovery.ucl.ac.uk/17241/1/17241.pdf | |
#julia v0.6 | |
using Plots | |
gr(size=(320,300)) | |
h=400 | |
w=400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#2D-Turing pattern陰解法+水玉模様 | |
#参考:三浦岳、発生の数理、京都大学学術出版会、2015、6.8 | |
#julia v0.6 | |
#using FFTW | |
using Plots | |
gr() | |
dx=0.04 | |
N=convert(Int,1/dx) #gridSize=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#2D-Turing pattern陰解法 | |
#参考:三浦岳、発生の数理、京都大学学術出版会、2015、6.6 | |
#julia v0.6 | |
#using FFTW | |
using Plots | |
gr(size=(320,300),titlefont=font("sans-serif",9)) | |
dx=0.04 | |
N=convert(Int,1/dx) #gridSize=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#2D-Turing pattern陽解法 | |
#参考:三浦岳、発生の数理、京都大学学術出版会、2015、6.6 | |
#julia v0.6 | |
using Plots | |
gr() | |
dx=0.04 | |
dt=0.02 | |
N=convert(Int,1/dx) |
NewerOlder