README.md

sccm: Schwarz-Christoffel Conformal Mapping

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status Coverage Status

An R package Providing a conformal mapping of one 2D polygon to a rectangular region via the Schwarz-Christoffel theorem.

Methods are provide to find a convex hull for an arbitrary set (x, y) coordinates. This hull, and the points within, are, via an (inverse) Schwarz-Christoffel mapping, mapped to the unit disk. A second Schwarz-Christoffel mapping from the unit disk to an arbitrary rectangle is use to finish the conformal mapping.

This package builds hulls via Andrew's monotone chain algorithm implemented in C++. The Schwarz-Christoffel mappings are provided by the fortran SCPACK by Lloyd N. Trefethen.

Methods

Useful methods in this package:

Date Sets

Two MC Escher images used to illustrate the conformal mappings CircleLimitI HexagonalFish

Vignettes

Within R run

vignette("sccm-overview", package = "sccm")

to get a detailed overview of the package.

Install

If you clone this repository you should be able to install the package via GNU make:

make install

Install form Github

You can install this package from github using the devtools package:

if (!("devtools" %in% rownames(installed.packages()))) { 
  warning("installing devtools from https://cran.rstudio.com")
  install.packages("devtools", 
                   repo = "https://cran.rstudio.com")
}

devtools::install_github("dewittpe/sccm", 
                         build_vignettes = TRUE)

If you are working on a Windows machine you will need to download and install Rtools before devtools will work for you.

What about CRAN?

This package is currently not on CRAN. Some elements of Trefethen's FORTRAN code is not compliant with the standards set by CRAN. (writing to stdin/stdout, and stops) A long term goal is to edit the FORTRAN code to make it CRAN compliant.

* checking compiled code ... NOTE
File ‘sccm/libs/sccm.so’:
  Found ‘_gfortran_st_write’, possibly from ‘write’ (Fortran), ‘print’
    (Fortran)
    Objects: ‘sclibdbl.o’, ‘scpdbl.o’
  Found ‘_gfortran_stop_string’, possibly from ‘stop’ (Fortran)
    Object: ‘scpdbl.o’


dewittpe/sccm documentation built on Feb. 2, 2024, 5:25 p.m.