- A detailed description of all subroutines etc. is given below.
- Please direct questions/suggestions to Caoxiang Zhu, czhu@pppl.gov, subject=FOCUS.
- Subroutines from Oculus are used.

subroutine | description | |

globals | (input) | Description of input namelists. |

numrec | (numerics) | Some miscellaneous numerical routines. |

initial | (initialize) | Read input file, initialize global variables. |

surface | (boundary) | The plasma boundary is read from file. |

rdknot | (knot) | Reads knot parameters from file. (Redundant?) |

rdcoils | (coils) | Fourier description of coils. |

knotxx | (brief) | Description. |

iccoil | (coil geometry) | Specification of coil geometry. |

bfield | (field) | Computes magnetic field. |

bnormal | (bnormal) | Calculate total bnormal and its derivatives. |

torflux | (toroidal flux) | Construct toroidal flux constraints. |

tlength | (tlength) | Calculate total length cost functon and its derivatives. (czhu) |

equarcl | (equarcl) | EQUAl ARC Length constraints. |

specwid | (specwid) | Spectral width condensation. |

coilsep | (coilsep) | Constraints for finding maximum coil-coil separation. |

nlinear | ( nlinear ) | Nonlinear solver using NAG routine. |

fdcheck | (fd check) | Read input file, initialize global variables. |

denergy | (energy) | Construct “energy” (cost function). |

descent | (optimize) | Minimize “energy” via a differential flow. |

restart | (restart) | Writes output and restart files. |

diagnos | (diagnostic) | Poincaré plot. |

exinput | (diagnostic) | Prepare input information for other codes. |

identfy | (identify) | Poincaré plot. |

bnftran | (bnftran) | Transforming the Bnormal distribution into Fourier harmonics. |

focus | (main) | Main program. |