Titanium Immersed Boundary Method Software: Oval Window Simulation.
The Oval Windows simulation is a part of the cochlea simulation developed by Ed Givelberg and Julian Bunn at Cal tech. This simulation constructs a square 2D mesh with an initial buldge on it, and runs the immersed boundary simulation as if it is the oval window.
To compile:
Same as other immersed boundary code; but the main function is in PlateMain.ti
To run:
PlateMain number-of-fiber-points-on-one-side-of-mesh starting-coordinate-of-mesh starting-coordinate-of-buldge-part size-of-mesh size-of-buldged-part buldge young's-modulus thickness poisson's-ratio viscosity fluid-grid-dimension number-of-timesteps output-interval
For example, if we want to run the simulation of a 4x4 2D mesh in the middle of a 32x32x32 fluid lattice, which has a 1x1 buldge in the middle by is 0.05 fluid grid units, and the mesh points are 0.1 units apart, with the following physical parameters:
young's modulus: 1
thickness: 0.002
poisson's ratio: 1
viscocity: 0.8
and output the results every 4 timesteps for 16 timesteps,
we would issue:
./PlateMain 40 14 15.5 4 1 0.05 1 0.002 1 0.8 32 16 4
The parameters are as follows:
number-of-fiber-points-on-one-side-of-mesh:
Since we want a 4x4 mesh with mesh points 0.1 units apart, there will be 40 mesh points on one side of the mesh.
starting-coorindate-of-mesh:
Since we want the 4x4 mesh to be located in the middle of the fluid lattice, the starting coordiate would be 14, so it would occupy the area 14,14 to 18,18.
starting-coordiate-of-buldge-part:
Since we want the buldge part to be at the center of the mesh, the starting coordiate of the buldge part would be 15.5, so it would occupy the area 15.5,15.5 to 16.5,16.5
size-of-mesh:
Since we want a 4x4 mesh, the size of mesh is 4.
size-of-buldge-part:
Since we want a 1x1 buldged part, the size of buldge part is 1.
buldge:
Since we want the buldge part to be 0.05 units above the rest of the mesh, the buldge is 0.05.
young's-modulus, viscosity, thickness, poisson's ratio:
Self-explanatory.
fluid-trid-dimension:
The experimental space is 32x32x32 fluid grid, so the fluid grid dimension is 32.
number-of-timesteps, output-interval:
Self-explanatory.