Giter Site home page Giter Site logo

svarner9 / jacobian-free-continuation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 131 KB

An implementation of the Jacobian-free pseudo-arclength continuation algorithm described in Varner, Balzer, and Wang JCP 2024. This repository includes fully functioning example Python code for three different physical systems coded.

License: MIT License

Python 100.00%

jacobian-free-continuation's Introduction

Jacobian-Free Pseudo-arclength Continuation (PAC)

This repository contains numerical routines and example problems designed to solve various nonlinear equations and models encountered in statistical mechanics and applied mathematics. The examples provided demonstrate our Jacobian-free pseudo-arclength continuation technique.

If you find, this repository helpful, please cite out paper! Varner, Balzer, Wang, JCP (2024)

Folder Structure

The repository is organized into three main folders, each containing specific examples and their respective codes:

1. Bratu

The Bratu folder contains code to solve the Bratu Equation (Liouville–Bratu–Gelfand) in 2D using Dirichlet boundary conditions. This equation models the temperature distribution in a reactor with exothermic reactions. The folder includes:

  • Anderson: Implementation of an Anderson-based Pseudo-Arclength Continuation (PAC) algorithm.
  • Newton: Implementation of a traditional Newton-based PAC algorithm.

2. Ising

The Ising folder houses the implementation of the Ising model with an external field under the mean-field approximation. This model is used to study phase transitions and magnetic properties of materials.

3. PolymerAdsorption

The PolymerAdsorption folder contains code to calculate the polymer density profile of a Flory solution near a solid surface. This model considers the interaction between polymers and solvents via the Flory-Huggins parameter ($\chi$).

How to Run the Examples

Each example folder includes a README.md file with detailed instructions on how to run the code. Generally, to execute the code, navigate to the respective folder and run the main Python script:

$ cd [ExampleFolder]
$ python main.py

jacobian-free-continuation's People

Contributors

svarner9 avatar chrisbalzer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.