Difference between revisions of "Template:Fixed body 2d bem code"

From WikiWaves
Jump to navigationJump to search
Line 6: Line 6:
 
* a program to calculate the solution for a specific geometry (with two plots as output as shown) can be found here [http://www.math.auckland.ac.nz/~meylan/code/boundary_element/wave_bem_example.m wave_bem_example.m]  
 
* a program to calculate the solution for a specific geometry (with two plots as output as shown) can be found here [http://www.math.auckland.ac.nz/~meylan/code/boundary_element/wave_bem_example.m wave_bem_example.m]  
  
[[Image:wave_bem_example_domain.jpg|300px|right|thumb|Plot of the panels used to calculate the solution]]
+
[[Image:wave_bem_example_domain.jpg|300px|right|thumb|Plot of the panels used to calculate the solution. Red shows the vertical boundaries,
 +
blue the surfaces with vanishing normal derivative and green the free surface.]]
  
 
[[Image:wave_bem_example_RT.jpg|300px|left|thumb|Curve of <math>R</math> and <math>T</math> for the geometry shown in the previous figure]]
 
[[Image:wave_bem_example_RT.jpg|300px|left|thumb|Curve of <math>R</math> and <math>T</math> for the geometry shown in the previous figure]]
  
 
[[Category:Pages with Matlab Code]]
 
[[Category:Pages with Matlab Code]]

Revision as of 02:40, 7 September 2009

A program to solve this problem can be found here fixed_body_twod.m

  • a program to plot the panels can be found here domainplot.m
  • a program to generate the panels for two circles can be found here semicircles_twod.m
  • a program to calculate the solution for a specific geometry (with two plots as output as shown) can be found here wave_bem_example.m
Plot of the panels used to calculate the solution. Red shows the vertical boundaries, blue the surfaces with vanishing normal derivative and green the free surface.
Curve of [math]\displaystyle{ R }[/math] and [math]\displaystyle{ T }[/math] for the geometry shown in the previous figure