Giter VIP home page Giter VIP logo

frg's Introduction

fRG算法演示

使用的标记习惯和 Introduction to the Functional Renormalization Group 一致。
代码中的公式没有其他说明也是出自这本书。

运行代码需要python3(>3.6)[1] ,numpyscipymatplotlib
首先要生成描述第一布里渊区的文件

python3 scripts/square/square_brillouin.py -p 16

在此基础上,进行计算

python3 scripts/square/square_solution_multi.py -p 16

设置运行时的参数

-p --patches
程序的fRG采用npatch算法进行实现,在运行代码时必须要指定patch的数量, 而且两次的数量大小必须一致。

[-m --mesh]
在数值计算的过程中,布里渊区会被切分成很多个小三角形,mesh指定这个小三角形的数量,对于 正方形格子,数量是4*mesh*mesh

[-d --disp]
色散关系,自由哈密量的色散关系,不同的跃迁和化学势会改变色散关系,square是普通的最近邻跃迁。

[--prefix]
用来保存和读取布里渊区描述文件的路径

注意事项

  • [1] python3.6中的Process不能正确的释放资源,可能导致程序的运行出现问题,可以用 with 块来处理Process,但不推荐python3.6。(https://bugs.python.org/issue30596

frg's People

Contributors

maryprimary 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.