Schwarz-Christoffel Toolbox

Computes conformal maps to polygons, allowing easy solution of Laplace's equation.
7.8K Downloads
Updated 17 Jul 2023
The Schwarz-Christoffel transformation is a recipe for a conformal map to a region bounded by a polygon. They can be computed to very high accuracy in little time. These maps can make certain Laplace boundary value problems trivial to solve on such domains.
Example:
p = polygon([0 i -1+i -1-i 1-i 1]); % L-shaped region
f = diskmap(p); % find map
plot(f) % visualize it
phi = lapsolve(p,[1 nan 4 3 nan 2]); % solve a BVP
[t,x,y] = triangulate(p);
trisurf(t,x,y,phi(x+i*y)); % see it

Cite As

Toby Driscoll (2024). Schwarz-Christoffel Toolbox (https://github.com/tobydriscoll/sc-toolbox/releases/tag/v3.1.3), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Triangulation Representation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

+sctool

@annulusmap

@annulusmap/private

@composite

@crdiskmap

@crdiskmap/private

@crrectmap

@crrectmap/private

@diskmap

@diskmap/private

@dscpolygons

@extermap

@extermap/private

@hplmap

@hplmap/private

@moebius

@polygon

@rectmap

@rectmap/private

@riesurfmap

@riesurfmap/private

@scmap

@scmapdiff

@scmapinv

@stripmap

@stripmap/private

tests

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
3.1.3

See release notes for this release on GitHub: https://github.com/tobydriscoll/sc-toolbox/releases/tag/v3.1.3

1.1.0.0

Now accessing the Github repository.

1.0.0.0

Previous resubmission was missing critical files.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.