CINXE.COM
Monte Carlo Wang-Landau_antiferromagnetic perovskite
<!DOCTYPE html> <html id="XF" lang="en-US" dir="LTR" data-app="public" data-template="thread_view" data-container-key="node-64" data-content-key="thread-1055241" data-logged-in="false" data-cookie-prefix="xf_" data-csrf="1732492379,1ebe5ae4944cb3b46d0e94c900cb4085" class="has-no-js template-thread_view XenBase layout-default style-light sidebar-right xb-toggle-default xb-sidebar-show" > <head> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-2209856-4"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-2209856-4'); </script> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <title>Monte Carlo Wang-Landau_antiferromagnetic perovskite</title> <link rel="manifest" href="/webmanifest.php"> <meta name="theme-color" content="#466288" /> <meta name="apple-mobile-web-app-title" content="Physics Forums"> <link rel="apple-touch-icon" href="https://www.physicsforums.com/misc/PhysicsForums_logo_192.png"> <meta name="description" content="Hi guys. Using the Wang-Landau algorithm, I have tried to simulate the magnetic behavior of a bulk perovskite by the Monte Carlo method. I have used the..." /> <meta property="og:description" content="Hi guys. Using the Wang-Landau algorithm, I have tried to simulate the magnetic behavior of a bulk perovskite by the Monte Carlo method. I have used the JDoS description to build the Energy x magnetization phase space. By a referencing article, this magnetic system can be described by the..." /> <meta property="twitter:description" content="Hi guys. Using the Wang-Landau algorithm, I have tried to simulate the magnetic behavior of a bulk perovskite by the Monte Carlo method. I have used the JDoS description to build the Energy x..." /> <meta property="og:url" content="https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/" /> <link rel="canonical" href="https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/" /> <script>document.documentElement.className+=' has-no-fa-brands';</script> <meta property="og:site_name" content="Physics Forums: Science Discussion, Homework Help, Articles" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Monte Carlo Wang-Landau_antiferromagnetic perovskite" /> <meta property="twitter:title" content="Monte Carlo Wang-Landau_antiferromagnetic perovskite" /> <meta property="og:image" content="https://www.physicsforums.com/styles/physicsforums/images/physics-forums-logo-og.png" /> <meta property="twitter:image" content="https://www.physicsforums.com/styles/physicsforums/images/physics-forums-logo-og.png" /> <meta property="twitter:card" content="summary" /> <link rel="stylesheet" href="/css.php?css=public%3Anormalize.css%2Cpublic%3Afa.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=12&l=1&d=1728569821&k=9d0860d3ac6d1d035719345d5207661b971a33e3" /> <link rel="stylesheet" href="/css.php?css=public%3ACMTV_Code_Prism_plugins.less%2Cpublic%3ACMTV_Code_code_block.less%2Cpublic%3Abb_code.less%2Cpublic%3Amessage.less%2Cpublic%3Apf_first_post_rss.css%2Cpublic%3Aphysicsforums_badges.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Astructured_list.less%2Cpublic%3Athxpress_xf.less%2Cpublic%3Axb.less%2Cpublic%3Aextra.less&s=12&l=1&d=1728569821&k=4aa7b1053b64d53be5ff91cb1e1ed5ab5ae3070e" /> <script src="/js/xf/preamble.min.js?_v=637e8561"></script> <link rel="icon" type="image/png" href="https://www.physicsforums.com/favicon.ico" sizes="32x32" /> <meta name="theme-color" content="#0275b4"> </head> <body data-template="thread_view" class=" "> <div class="p-pageWrapper" id="top"> <div class="p-pageWrapper--helper"></div> <div class="xb-page-wrapper xb-canvas-menuActive"> <div class="xb-page-wrapper--helper"></div> <div class="xb-content-wrapper"> <div class="navigation-helper"></div> <div class="p-navSticky p-navSticky--primary" data-xf-init="sticky-header"> <div class="p-nav--wrapper"> <nav class="p-nav"> <div class="p-nav-inner"> <button type="button" class="button--plain p-nav-menuTrigger button" data-xf-click="off-canvas" data-menu=".js-headerOffCanvasMenu" tabindex="0" aria-label="Menu"><span class="button-text"> <i aria-hidden="true"></i> </span></button> <div class="p-nav-smallLogo"> <a href="/"> <img src="https://www.physicsforums.com/styles/physicsforums/xenforo/logo.png" srcset="" alt="Physics Forums: Science Discussion, Homework Help, Articles" width="274" height="51" /> <img src="https://www.physicsforums.com/styles/physicsforums/xenforo/logosmall.png" width="52" height="50" alt="Physics Forums: Science Discussion, Homework Help, Articles" class="logo-mobile" /> </a> </div> <div class="p-nav-scroller hScroller" data-xf-init="h-scroller" data-auto-scroll=".p-navEl.is-selected"> <div class="hScroller-scroll"> <ul class="p-nav-list js-offCanvasNavSource"> <li class="navthxlink_1"> <div class="p-navEl " data-has-children="true"> <a href="https://www.physicsforums.com/insights/" class="p-navEl-link p-navEl-link--splitMenu " data-nav-id="thxlink_1">Insights Blog</a> <a data-xf-key="1" data-xf-click="menu" data-menu-pos-ref="< .p-navEl" class="p-navEl-splitTrigger" role="button" tabindex="0" aria-label="Toggle expanded" aria-expanded="false" aria-haspopup="true"></a> <div class="menu menu--structural" data-menu="menu" aria-hidden="true"> <div class="menu-content"> <a href="https://www.physicsforums.com/insights/postindex/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="toc">-- Browse All Articles --</a> <a href="https://www.physicsforums.com/insights/science-math-articles/physics-articles/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="physarticles">Physics Articles</a> <a href="https://www.physicsforums.com/insights/science-math-tutorials/physics-tutorials/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="phystuts">Physics Tutorials</a> <a href="https://www.physicsforums.com/insights/science-math-guides/physics-guides/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="physguides">Physics Guides</a> <a href="https://www.physicsforums.com/insights/science-math-faqs/physics-faqs/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="physfaq">Physics FAQ</a> <a href="https://www.physicsforums.com/insights/science-math-articles/math-articles/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="mathart">Math Articles</a> <a href="https://www.physicsforums.com/insights/science-math-tutorials/math-tutorials/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="mathtuts">Math Tutorials</a> <a href="https://www.physicsforums.com/insights/science-math-guides/math-guides/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="mathguide">Math Guides</a> <a href="https://www.physicsforums.com/insights/science-math-faqs/math-faqs/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="mathfaq">Math FAQ</a> <a href="https://www.physicsforums.com/insights/science-math-articles/education-articles/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="eduart">Education Articles</a> <a href="https://www.physicsforums.com/insights/science-math-guides/education-guides/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="eduguide">Education Guides</a> <a href="https://www.physicsforums.com/insights/science-math-articles/biology-chemistry-articles/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="biochemart">Bio/Chem Articles</a> <a href="https://www.physicsforums.com/insights/science-math-guides/technology-guides/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="techguides">Technology Guides</a> <a href="https://www.physicsforums.com/insights/science-math-tutorials/computer-science-tutorials/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="compscitut">Computer Science Tutorials</a> </div> </div> </div> </li> <li class="navforums"> <div class="p-navEl is-selected" data-has-children="true"> <a href="https://www.physicsforums.com/" class="p-navEl-link p-navEl-link--splitMenu " data-nav-id="forums">Forums</a> <a data-xf-key="2" data-xf-click="menu" data-menu-pos-ref="< .p-navEl" class="p-navEl-splitTrigger" role="button" tabindex="0" aria-label="Toggle expanded" aria-expanded="false" aria-haspopup="true"></a> <div class="menu menu--structural" data-menu="menu" aria-hidden="true"> <div class="menu-content"> <a href="https://www.physicsforums.com/forums/classical-physics.61/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="quantum">Classical Physics</a> <a href="https://www.physicsforums.com/forums/quantum-physics.62/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="quantummech">Quantum Physics</a> <a href="https://www.physicsforums.com/forums/quantum-interpretations-and-foundations.292/" class="menu-linkRow u-indentDepth1 js-offCanvasCopy " data-nav-id="quantum_inter">Quantum Interpretations</a> <hr class="menu-separator" /> <a href="https://www.physicsforums.com/forums/special-and-general-relativity.70/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="genrel">Special and General Relativity</a> <a href="https://www.physicsforums.com/forums/atomic-and-condensed-matter.64/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="atomicphys">Atomic and Condensed Matter</a> <a href="https://www.physicsforums.com/forums/high-energy-nuclear-particle-physics.65/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="highenergy">Nuclear and Particle Physics</a> <a href="https://www.physicsforums.com/forums/beyond-the-standard-model.66/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="standardmodel">Beyond the Standard Model</a> <a href="https://www.physicsforums.com/forums/cosmology.69/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="cosmo">Cosmology</a> <a href="https://www.physicsforums.com/forums/astronomy-and-astrophysics.71/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="astrophysics">Astronomy and Astrophysics</a> <a href="https://www.physicsforums.com/forums/other-physics-topics.111/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="otherphys">Other Physics Topics</a> </div> </div> </div> </li> <li class="navhotthreads1"> <div class="p-navEl " > <a href="https://www.physicsforums.com/whats-new/hot-threads" class="p-navEl-link " data-xf-key="3" data-nav-id="hotthreads1">Trending</a> </div> </li> <li class="navfeaturedthreads1"> <div class="p-navEl " > <a href="https://www.physicsforums.com/threads/featured" class="p-navEl-link " data-xf-key="4" data-nav-id="featuredthreads1">Featured Threads</a> </div> </li> </ul> </div> </div> <div class="p-nav-opposite"> <div class="p-navgroup p-account p-navgroup--guest"> <a href="/login/" class="p-navgroup-link p-navgroup-link--textual p-navgroup-link--logIn" data-xf-click="overlay" data-follow-redirects="on"> <span class="p-navgroup-linkText">Log in</span> </a> <a href="/login/register" class="p-navgroup-link p-navgroup-link--textual p-navgroup-link--register" data-xf-click="overlay" data-follow-redirects="on"> <span class="p-navgroup-linkText">Register</span> </a> </div> <div class="p-navgroup p-discovery"> <a href="/whats-new/" class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--whatsnew" aria-label="What's new" title="What's new"> <i aria-hidden="true"></i> <span class="p-navgroup-linkText">What's new</span> </a> <a href="/search/" class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--search" data-xf-click="menu" data-xf-key="/" aria-label="Search" aria-expanded="false" aria-haspopup="true" title="Search"> <i aria-hidden="true"></i> <span class="p-navgroup-linkText">Search</span> </a> <div class="menu menu--structural menu--wide" data-menu="menu" aria-hidden="true"> <form action="/search/search" method="post" class="menu-content" data-xf-init="quick-search"> <h3 class="menu-header">Search</h3> <div class="menu-row"> <a href="https://www.google.com/search?q=physics+forums" rel='nofollow,noreferrer'><b>Google search</b></a>: add "Physics Forums" to query<br><br> <div class="inputGroup inputGroup--joined"> <input type="text" class="input" name="keywords" placeholder="Search…" aria-label="Search" data-menu-autofocus="true" /> <select name="constraints" class="js-quickSearch-constraint input" aria-label="Search within"> <option value="">Everywhere</option> <option value="{"search_type":"post"}">Threads</option> <option value="{"search_type":"post","c":{"nodes":[64],"child_nodes":1}}">This forum</option> <option value="{"search_type":"post","c":{"thread":1055241}}">This thread</option> </select> </div> </div> <div class="menu-row"> <label class="iconic"><input type="checkbox" name="c[title_only]" value="1" /><i aria-hidden="true"></i><span class="iconic-label">Search titles only <span tabindex="0" role="button" data-xf-init="tooltip" data-trigger="hover focus click" title="Tags will also be searched in content where tags are supported"> <i class="fa--xf far fa-question-circle u-muted u-smaller" aria-hidden="true"></i> </span></span></label> </div> <div class="menu-row"> <div class="inputGroup"> <span class="inputGroup-text" id="ctrl_search_menu_by_member">By:</span> <input type="text" class="input" name="c[users]" data-xf-init="auto-complete" placeholder="Member" aria-labelledby="ctrl_search_menu_by_member" /> </div> </div> <div class="menu-footer"> <span class="menu-footer-controls"> <button type="submit" class="button--primary button button--icon button--icon--search"><span class="button-text">Search</span></button> <a href="/search/" class="button"><span class="button-text">Advanced search…</span></a> </span> </div> <input type="hidden" name="_xfToken" value="1732492379,1ebe5ae4944cb3b46d0e94c900cb4085" /> </form> </div> </div> </div> </div> </nav> </div> </div> <div class="p-sectionLinks--wrapper"> <div class="p-sectionLinks"> <div class="p-sectionLinks-inner"> <div class="hScroller" data-xf-init="h-scroller"> <div class="hScroller-scroll"> <ul class="p-sectionLinks-list"> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/classical-physics.61/" class="p-navEl-link " data-xf-key="alt+1" data-nav-id="quantum">Classical Physics</a> </div> </li> <li> <div class="p-navEl " data-has-children="true"> <a href="https://www.physicsforums.com/forums/quantum-physics.62/" class="p-navEl-link p-navEl-link--splitMenu " data-nav-id="quantummech">Quantum Physics</a> <a data-xf-key="alt+2" data-xf-click="menu" data-menu-pos-ref="< .p-navEl" class="p-navEl-splitTrigger" role="button" tabindex="0" aria-label="Toggle expanded" aria-expanded="false" aria-haspopup="true"></a> <div class="menu menu--structural" data-menu="menu" aria-hidden="true"> <div class="menu-content"> <a href="https://www.physicsforums.com/forums/quantum-interpretations-and-foundations.292/" class="menu-linkRow u-indentDepth0 js-offCanvasCopy " data-nav-id="quantum_inter">Quantum Interpretations</a> </div> </div> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/special-and-general-relativity.70/" class="p-navEl-link " data-xf-key="alt+3" data-nav-id="genrel">Special and General Relativity</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/atomic-and-condensed-matter.64/" class="p-navEl-link " data-xf-key="alt+4" data-nav-id="atomicphys">Atomic and Condensed Matter</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/high-energy-nuclear-particle-physics.65/" class="p-navEl-link " data-xf-key="alt+5" data-nav-id="highenergy">Nuclear and Particle Physics</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/beyond-the-standard-model.66/" class="p-navEl-link " data-xf-key="alt+6" data-nav-id="standardmodel">Beyond the Standard Model</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/cosmology.69/" class="p-navEl-link " data-xf-key="alt+7" data-nav-id="cosmo">Cosmology</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/astronomy-and-astrophysics.71/" class="p-navEl-link " data-xf-key="alt+8" data-nav-id="astrophysics">Astronomy and Astrophysics</a> </div> </li> <li> <div class="p-navEl " > <a href="https://www.physicsforums.com/forums/other-physics-topics.111/" class="p-navEl-link " data-xf-key="alt+9" data-nav-id="otherphys">Other Physics Topics</a> </div> </li> </ul> </div> </div> <div class="p-sectionLinks-right"> </div> </div> </div> </div> <div class="offCanvasMenu offCanvasMenu--nav js-headerOffCanvasMenu" data-menu="menu" aria-hidden="true" data-ocm-builder="navigation"> <div class="offCanvasMenu-backdrop" data-menu-close="true"></div> <div class="offCanvasMenu-content"> <div class="offCanvasMenu-content--inner"> <div class="offCanvasMenu-header"> Menu <a class="offCanvasMenu-closer" data-menu-close="true" role="button" tabindex="0" aria-label="Close"></a> </div> <div class="p-offCanvasRegisterLink"> <div class="offCanvasMenu-linkHolder"> <a href="/login/" class="offCanvasMenu-link" data-xf-click="overlay" data-menu-close="true"> Log in </a> </div> <hr class="offCanvasMenu-separator" /> <div class="offCanvasMenu-linkHolder"> <a href="/login/register" class="offCanvasMenu-link" data-xf-click="overlay" data-menu-close="true"> Register </a> </div> <hr class="offCanvasMenu-separator" /> </div> <div class="offCanvasMenu-subHeader">Navigation</div> <div class="js-offCanvasNavTarget"></div> <!-- <div class="offCanvasMenu-installBanner js-installPromptContainer" style="display: none;" data-xf-init="install-prompt"> <div class="offCanvasMenu-installBanner-header">Install the app</div> <button type="button" class="js-installPromptButton button"><span class="button-text">Install</span></button> <template class="js-installTemplateIOS"> <div class="overlay-title">How to install the app on iOS</div> <div class="block-body"> <div class="block-row"> <p> Follow along with the video below to see how to install our site as a web app on your home screen. </p> <p style="text-align: center"> <video src="/styles/default/xenforo/add_to_home.mp4" width="280" height="480" autoplay loop muted playsinline></video> </p> <p> <small><strong>Note:</strong> This feature may not be available in some browsers.</small> </p> </div> </div> </template> </div> --> <div class="offCanvasMenu-subHeader">More options</div> <div class="offCanvasMenu-linkHolder"> <a href="/misc/contact" class="offCanvasMenu-link" data-menu-close="true" data-nav-id="contactUs" data-xf-click="overlay">Contact us</a> </div> <div class="offCanvasMenu-linkHolder"> <a class="offCanvasMenu-link" data-menu-close="true" data-nav-id="closeMenu" role="button" tabindex="0" aria-label="Close">Close Menu</a> </div> </div> </div> </div> <div class="p-body"> <div class="p-body-inner"> <!--XF:EXTRA_OUTPUT--> <noscript class="js-jsWarning"><div class="blockMessage blockMessage--important blockMessage--iconic u-noJsOnly">JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.</div></noscript> <div class="blockMessage blockMessage--important blockMessage--iconic js-browserWarning" style="display: none">You are using an out of date browser. It may not display this or other websites correctly.<br />You should upgrade or use an <a href="https://www.google.com/chrome/" target="_blank" rel="noopener">alternative browser</a>.</div> <div class="p-body-main p-body-main--withSidebar "> <div class="p-body-contentCol"></div> <div class="p-body-sidebarCol"></div> <div class="p-body-content"> <div class="p-body-pageContent"> <div class="p-breadcrumbs--parent "> <ul class="p-breadcrumbs " itemscope itemtype="https://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="https://www.physicsforums.com/" itemprop="item"> <span itemprop="name">Forums</span> </a> <meta itemprop="position" content="1" /> </li> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="/#physics.9" itemprop="item"> <span itemprop="name">Physics</span> </a> <meta itemprop="position" content="2" /> </li> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="/forums/atomic-and-condensed-matter.64/" itemprop="item"> <span itemprop="name">Atomic and Condensed Matter</span> </a> <meta itemprop="position" content="3" /> </li> </ul> </div> <div class="p-body-header"> <div class="p-title "> <h1 class="p-title-value"> Monte Carlo Wang-Landau_antiferromagnetic perovskite </h1> </div> <div class="p-description"> <ul class="listInline listInline--bullet"> <li> <span data-xf-init="tooltip" title="Level: Advanced (Grad)" ><span class="prefix advanced" dir="auto">A</span></span> </li> <li> <i class="fa--xf fal fa-user" aria-hidden="true" title="Thread starter"></i> <span class="u-srOnly">Thread starter</span> <span>UFSJ</span> </li> <li> <i class="fa--xf fal fa-clock" aria-hidden="true" title="Start date"></i> <span class="u-srOnly">Start date</span> <time class="u-dt" dir="auto" datetime="2023-08-28T08:02:53-0500" data-time="1693227773" data-date-string="Aug 28, 2023" data-time-string="8:02 AM" title="Aug 28, 2023 at 8:02 AM">Aug 28, 2023</time> </li> </ul> </div> </div> <div class="block-container lbContainer" style="padding:5px;"> In summary, the study on "Monte Carlo Wang-Landau antiferromagnetic perovskite" explores the application of the Wang-Landau algorithm in the context of antiferromagnetic materials, specifically perovskites. It focuses on the computational methods used to analyze the magnetic properties and phase transitions in these materials, highlighting the effectiveness of the Monte Carlo simulations in understanding complex magnetic behavior. The findings contribute to the knowledge of the thermodynamic characteristics of antiferromagnetic perovskites, which are significant for their potential applications in advanced electronic devices. </div> <script src="https://www.physicsforums.com/check-for-tex.js" defer></script> <div class="block block--messages" data-xf-init="" data-type="post" data-href="/inline-mod/" data-search-target="*"> <span class="u-anchorTarget" id="posts"></span> <div class="block-outer"></div> <div class="block-outer js-threadStatusField"></div> <div class="block-container lbContainer" data-xf-init="lightbox select-to-quote old-new-message-indicator" data-sv-live-content-time-element-selector=".message-attribution-main time.u-dt" data-message-selector=".js-post" data-lb-id="thread-1055241" data-lb-universal="0"> <div class="block-body js-replyNewMessageContainer"> <!-- RSS here --> <article class="message message--post js-post js-inlineModContainer " data-author="UFSJ" data-content="post-6926869" id="js-post-6926869" > <span class="u-anchorTarget" id="post-6926869"></span> <div class="message-header"> <header class="message-attribution message-attribution--split"> <ul class="message-attribution-main listInline "> <li class="u-concealed"> <time class="u-dt" dir="auto" datetime="2023-08-28T08:02:53-0500" data-time="1693227773" data-date-string="Aug 28, 2023" data-time-string="8:02 AM" title="Aug 28, 2023 at 8:02 AM">Aug 28, 2023</time> </li> </ul> <ul class="message-attribution-opposite message-attribution-opposite--list "> <li> <span style="cursor:pointer;" data-xf-init="share-tooltip" data-href="/posts/6926869/share" aria-label="Share" role="button" rel="nofollow"> <i class="fa--xf fal fa-share-alt" aria-hidden="true"></i> </span> </li> <li> #1 </li> </ul> </header> </div> <div class="message-inner"> <div class="message-cell message-cell--user"> <section class="message-user" > <div class="message-userDetails"> <span class="message-name"><span class="username " dir="auto" data-user-id="646881">UFSJ</span></span> <!--<h5 class="userTitle message-userTitle" dir="auto">A PF Atom</h5>--> <!----> <span class="threadstarter" data-xf-init="tooltip" title="Thread Starter"><i class="fal fa-user-edit"></i></span> <!-- Start Member Achievements --> <!-- End Member Achievements --> </div> <div class="message-userExtras"> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-comments fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Messages"></i></dt> <dd>15</dd> </dl> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-thumbs-up fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Reaction score"></i></dt> <dd>2</dd> </dl> </div> <span class="message-userArrow"></span> </section> </div> <div class="message-cell message-cell--main"> <div class="message-main js-quickEditTarget"> <div class="message-content js-messageContent"> <div class="message-userContent lbContainer js-lbContainer " data-lb-id="post-6926869" data-lb-caption-desc="UFSJ · Aug 28, 2023 at 8:02 AM"> <article class="message-body js-selectToQuote"> <div class="googleads_fixed"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6580726045122001" crossorigin="anonymous"></script> <!-- PF InsidePost 300x250 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6580726045122001" data-ad-slot="3049969336" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div > <div class="bbWrapper">Hi guys.<br /> <br /> Using the Wang-Landau algorithm, I have tried to simulate the magnetic behavior of a bulk perovskite by the Monte Carlo method. I have used the JDoS description to build the Energy x magnetization phase space. By a referencing article, this magnetic system can be described by the Hamiltonian:<br /> H = - 2J<sub>1</sub> ∑ S<sub>i</sub> S<sub>j</sub> - 2J<sub>2</sub> ∑ S<sub>i</sub><br /> S<sub>k</sub> - D ∑ S<sub>i</sub> <sup>2</sup>, where J<sub>1</sub> is the exchange constant between two spins of the same basal plane (0.83 meV), J<sub>2</sub> is the exchange constant between two different basal planes (- 0.58 meV), D is the anisotropic constant (0.165 meV) and the experimental T<sub>N</sub> = 139.5 K. This compound is an A-type Néel antiferromagnetic. Below, I share my Wang-Landau program to obtain the density of states (actually to obtain the ln[g(E,m)]) written in Fortran 90. Can anyone point out where my error is? I am obtaining a phase transition temperature at 75 K.<br /> <br /> Thanks! <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code language-fortran " data-xf-init="CMTV-code-block"> <div class="bbCodeBlock-header"> <div class="bbCodeBlock-title"> <span title="Fortran"> Wang-Landau JDoS: </span> </div> <div class="bbCodeBlock-actions"> <i class="fa--xf fal fa-expand-alt action action--expand action--hidden" aria-hidden="true" title="Expand" data-xf-init="tooltip" data-xf-click="CMTV-code-block-expand"></i> <i class="fa--xf fal fa-compress-alt action action--collapse action--hidden" aria-hidden="true" title="Collapse" data-xf-init="tooltip" data-xf-click="CMTV-code-block-collapse"></i> <i class="fa--xf fal fa-paste action action--copy" aria-hidden="true" title="Copy" data-xf-init="tooltip"></i> </div> </div> <div class="bbCodeBlock-content" dir="ltr"> <pre class="bbCodeCode line-numbers" dir="ltr" data-line="" data-xf-init="CMTV-code-block-extend" data-lang="fortran"><code>PROGRAM Perov_4est_JDoS IMPLICIT NONE INTEGER, PARAMETER :: lz = 20 ! lattice length INTEGER, PARAMETER :: ly = 20 INTEGER, PARAMETER :: lx = 20 INTEGER, PARAMETER :: n = lx*ly*lz ! number of spins INTEGER, PARAMETER :: ff = 25 ! number of loops applying the modification factor e^0.5 REAL, PARAMETER :: flat = 0.95 ! the flatness parameter INTEGER, PARAMETER :: cond = 1 ! if cond =1 the boundary conditions is ON, if cond = 0 is OFF REAL, PARAMETER :: J1 = 2*0.83 ! exchange constant in the same basal plane in units of de meV REAL, PARAMETER :: J2 = 2*(-0.58) ! exchange constant between basal planes in units of de meV REAL, PARAMETER :: D = 0.1*J1 ! anisotropic constant in units of meV REAL, PARAMETER :: E_max = n*((J1*16 - J2*8)/2 - D*4) ! maximum energy value INTEGER, PARAMETER :: bin_E = 10**4 ! maximum number of different energy values to be get INTEGER, PARAMETER :: bin_m = 10**4 ! maximum number of different magnetization values to be get INTEGER :: r, k, q, r1, r2, k1, k2, px, py, pz, pV, pG, pr, pf, ping, pong, idum, sf REAL :: Ei, Ef, mi, mf, E_latt, M_latt, E, m DOUBLE PRECISION :: test, E_fund, h_sum, f, ln_Ohm_fund INTEGER, DIMENSION (bin_E,bin_m) :: h, h_acum ! matrix Histograma and accumulated Histograma DOUBLE PRECISION, DIMENSION (bin_E,bin_m) :: g ! matrix of the log of density of states REAL, DIMENSION (bin_E) :: E_val ! array of energy values REAL, DIMENSION (bin_m) :: m_val ! array of magnetization values INTEGER, DIMENSION (n+1) :: s ! spin ! array os the values of the spin INTEGER, DIMENSION (n) :: sv1 ! at right ! arrays of the neighbor's position along the spin chain INTEGER, DIMENSION (n) :: sv2 ! at left INTEGER, DIMENSION (n) :: sv3 ! in the next line INTEGER, DIMENSION (n) :: sv4 ! in the bottom line INTEGER, DIMENSION (n) :: sv5 ! in the up basal plane INTEGER, DIMENSION (n) :: sv6 ! in the down basal plane CHARACTER(LEN = 70) :: txt REAL :: rd, xrand idum = 123456789 s(n+1) = 0 ! Array of first neighbors DO pz=1,lz DO py=1,ly DO px=1,lx r = px + lx*(py - 1) + lx*ly*(pz - 1) sv1(r) = r + 1 ! at right sv2(r) = r - 1 ! at left sv3(r) = r + lx ! in the next line sv4(r) = r - lx ! in the bottom line sv5(r) = r + lx*ly ! up sv6(r) = r - lx*ly ! down END DO END DO END DO! Boundary condition IF (cond==1) THEN ! boundary condition ON DO pz=1,lz DO py=1,ly DO px=1,lx r = px + lx*(py - 1) + lx*ly*(pz - 1) IF(px==lx) THEN sv1(r) = r - lx + 1 ! at right END IF IF(px==1) THEN sv2(r) = r + lx - 1 ! at left END IF IF(py==ly) THEN sv3(r) = r - lx*(ly - 1) ! in the next line END IF IF(py==1) THEN sv4(r) = r + lx*(ly - 1) ! in the line before END IFIF(pz==lz) THEN sv5(r) = r - lx*ly*(lz - 1) ! up END IF IF(pz==1) THEN sv6(r) = r + lx*ly*(lz - 1) ! down END IF END DO END DO END DOELSE IF (cond==0) THEN ! boundary condition OFF DO pz=1,lz DO py=1,ly DO px=1,lx r = px + lx*(py - 1) + lx*ly*(pz - 1) IF(px==1) THEN sv2(r) = n + 1 ! at left END IF IF(px==lx) THEN sv1(r) = n + 1 ! at right END IF IF(py==1) THEN sv4(r) = n + 1 ! in the line before END IF IF(py==ly) THEN sv3(r) = n + 1 ! in the next line END IF IF(pz==1) THEN sv5(r) = n + 1 ! up END IF IF(pz==lz) THEN sv6(r) = n + 1 ! down END IF END DO END DO END DO END IF !!!!! Building the phase space E x m and updating the ln[g(E,m)] and histogram DO r=1,bin_E DO k=1,bin_m g(r,k)= 1 h_acum(r,k) = 0 E_val(r) = 123456789 ! filling the energy and magnetization arrays with any wrong values. As a new state is observed, these values will be updating m_val(k) = 123456789 END DO END DO DO k=1,n ! defining values for the spin-lattice rd = xrand(idum) IF (rd<=0.2) THEN s(k) = - 2 ELSE IF ((0.2<rd).AND.(rd<=0.4)) THEN s(k) = - 1 ELSE IF ((0.4<rd).AND.(rd<=0.6)) THEN s(k) = 0 ELSE IF ((0.6<rd).AND.(rd<=0.8)) THEN s(k) = 1 ELSE IF (0.8<rd) THEN s(k) = 2 END IF END DO E_latt = 0 M_latt = 0 DO k=1,n ! obtaining the initial values of energy and magnetization of the chain E_latt = E_latt - s(k)*( J1*( s(sv1(k)) + s(sv2(k)) + s(sv3(k)) + s(sv4(k)) )/2 + J2*( s(sv5(k)) + s(sv6(k)) )/2 + D*s(k) ) M_latt = M_latt + s(k) END DO Ei = E_latt mi= M_latt E_val(1) = Ei m_val(1) = mi DO pf=1,ff ! defining the value of the modification factor f = exp(1.0)**( 1/(2**(pf - 1.0) ) ) DO r=1,bin_E DO k=1,bin_m h(r,k)= 0 ! histogram END DO END DO print*, 'pf-', pf ping = 0 DO WHILE (ping==0) ! the beginning of the loop responsible for the flatness test DO pV=1,n*10**6 ! Monte Carlo loops testing new configuration of the chain rd = xrand(idum) ! random choice of a spin "q" to be flipped q = NINT(n*rd) IF(q==0) THEN q = n END IF rd = xrand(idum) ! Analyzing the flip of the spin "q" IF (s(q)==-2) THEN IF (rd<=0.25) THEN sf = - 1 ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN sf = 0 ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN sf = 1 ELSE IF (0.75<rd) THEN sf = 2 END IF ELSE IF (s(q)==-1) THEN IF (rd<=0.25) THEN sf = - 2 ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN sf = 0 ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN sf = 1 ELSE IF (0.75<rd) THEN sf = 2 END IF ELSE IF (s(q)==0) THEN IF (rd<=0.25) THEN sf = - 2 ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN sf = - 1 ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN sf = 1 ELSE IF (0.75<rd) THEN sf = 2 END IF ELSE IF (s(q)==1) THEN IF (rd<=0.25) THEN sf = - 2 ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN sf = - 1 ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN sf = 0 ELSE IF (0.75<rd) THEN sf = 2 END IF ELSE IF (s(q)==2) THEN IF (rd<=0.25) THEN sf = - 2 ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN sf = - 1 ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN sf = 0 ELSE IF (0.75<rd) THEN sf = 1 END IF END IF ! Calculating the value of energy and magnetization of the possible final state with the flip of the spin "q" Ef = Ei - (sf - s(q))*( J1*( s(sv1(q)) + s(sv2(q)) + s(sv3(q)) + s(sv4(q)) ) + J2*( s(sv5(q)) + s(sv6(q)) ) ) & - D*(sf**2 - s(q)**2) mf = mi + (sf - s(q)) DO r=1,bin_E ! identifying the position of the final energy along the Energy values array IF (abs(E_val(r) - Ef) <= 0.001 ) THEN r2 = r GO TO 100 END IF END DO DO r=1,bin_E ! defining a position for the final energy along the Energy array, if it already not have been made IF (abs(E_val(r) - 123456789) <= 0.001) THEN E_val(r) = Ef r2 = r GO TO 100 END IF END DO 100 CONTINUE DO k=1,bin_m ! identifying the position of the final magnetization along the magnetization values array IF (abs(m_val(k) - mf) <= 0.001 ) THEN k2 = k GO TO 200 END IF END DO DO k=1,bin_m ! defining a position for the final magnetization along the magnetization array, if it already not have been made IF (abs(m_val(k) - 123456789) <= 0.001) THEN m_val(k) = mf k2 = k GO TO 200 END IF END DO 200 CONTINUE rd = xrand(idum) ! analyzing the possibility of changing from initial state to the final state and updating the histogram and density of states IF (exp(g(r1,k1) - g(r2,k2)) >= 1) THEN g(r2,k2) = g(r2,k2) + log(f) h(r2,k2) = h(r2,k2) + 1 h_acum(r2,k2) = h_acum(r2,k2) + 1 s(q) = sf r1 = r2 k1 = k2 ELSE IF (exp(g(r1,k1) - g(r2,k2)) >= rd) THEN g(r2,k2) = g(r2,k2) + log(f) h(r2,k2) = h(r2,k2) + 1 h_acum(r2,k2) = h_acum(r2,k2) + 1 s(q) = sf r1 = r2 k1 = k2 ELSE ! Keeping in the initial state and updating the histogram and density of states g(r1,k1) = g(r1,k1) + log(f) h(r1,k1) = h(r1,k1) + 1 h_acum(r1,k1) = h_acum(r1,k1) + 1 END IFEND DO ! end of pV loop !!!!!!!!!!!!!!! flatness test h_sum = 0 pr = 0 DO r=1,bin_E DO k=1,bin_m IF (h_acum(r,k)>0) THEN ! considering just visited states, that is, the states with accumulated histogram not zero pr = pr + 1 h_sum = h_sum + h(r,k) END IF END DO END DO pong = 0 DO r=1,bin_E DO k=1,bin_m IF (h_acum(r,k)>0) THEN test = h(r,k)/(h_sum/pr) IF (test < flat) THEN pong = pong + 1 END IF END IF END DO END DO ! if all considered states pass the flatness test, then "ping" changes to 1 and we go out of the flatness test, update the modification faction and repeat the process IF (pong == 0) THEN ping = 1 END IFEND DO ! final of the flatness loop END DO ! final of the modification factor loop !!!!!! Normalization of the density of states ln_Ohm_fund = 0 E_fund = E_max ! starting considering the smallest value of energy as the maximum possible value DO r=1,bin_E DO k=1,bin_m IF ((h_acum(r,k)>0).AND.(E_val(r) < E_fund)) THEN ! updating the smallest value of energy among the values computed E_fund = E_val(r) ln_Ohm_fund = g(r,k) END IF END DO END DO DO r=1,bin_E DO k=1,bin_m IF (h_acum(r,k)>0) THEN g(r,k) = g(r,k) - ln_Ohm_fund + log(1.0) ! Updating the value of the density of states END IF END DO END DO ! creating the output file with the energy and magnetization values and the respective ln[ g(E,m) ] WRITE(txt,"(f4.2,f5.2,f4.2,I3,I3,I3,I0)") J1, J2, flat, ly, lx, lz, cond WRITE(txt, "(A,f4.2,A,f5.2,A,f4.2,A,I3,A,I3,AI3,A,I0,A)") 'J1=',J1,'J2=',J2,'_ & <h>=',flat,'lx=',lx,'ly=',ly,'lz=',lz,'cond=',cond,'.dat' OPEN(2, FILE = trim(txt), STATUS = 'unknown') DO r=1,bin_E DO k=1,bin_m IF (h_acum(r,k)>0) THEN WRITE(2, *) E_val(r),';',m_val(k),';',g(r,k) END IF END DO END DOEND PROGRAM !cccccccccc Random function generator FUNCTION XRAND(IDUM) INTEGER IDUM REAL XRAND INTEGER, PARAMETER :: IM1=2147413563, IM2=2147413399, IMM1=IM1-1 INTEGER, PARAMETER :: IA1=40014,IA2=40692,IQ1=53661,IQ2=52774,IR1=12211,IR2=3791,NTAB=32,NDIV=1+IMM1/NTAB REAL, PARAMETER :: AM=1./IM1,EPS=1.2E-7,RNMX=1.-EPS INTEGER IDUM2,J,K,IV(NTAB),IY SAVE IV,IY,IDUM2 DATA IDUM2/123456719/,IV/NTAB*0/,IY/0/ IF (IDUM .LE. 0)THEN IDUM=MAX(-IDUM,1) IDUM2=IDUM DO J=NTAB+1,1,-1 K=IDUM/IQ1 IDUM=IA1*(IDUM-K*IQ1)-K*IR1 IF(IDUM .LT. 0)IDUM=IDUM+IM1 IF(J .LE. NTAB)IV(J)=IDUM END DO IY=IV(1) END IF K=IDUM/IQ1 IDUM=IA1*(IDUM-K*IQ1)-K*IR1 IF(IDUM .LT. 0)IDUM=IDUM+IM1 K=IDUM2/IQ2 IDUM2=IA2*(IDUM2-K*IQ2)-K*IR2 IF(IDUM2 .LT. 0)IDUM2=IDUM2+IM2 J= 1 + IY/NDIV IY=IV(J)-IDUM2 IV(J)=IDUM IF(IY .LT. 1)IY=IY+IMM1 XRAND=MIN(AM*IY,RNMX) RETURN END</code></pre> </div> <div class="bbCodeBlock-grip resizer--hidden" data-xf-init="CMTV-code-block-resizer"> <i class="fa--xf fal fa-grip-horizontal" aria-hidden="true"></i> </div> </div></div> </div> <div class="js-selectToQuoteEnd"> </div> </article> </div> <div class="message-lastEdit"> Last edited: <time class="u-dt" dir="auto" datetime="2023-08-28T09:22:05-0500" data-time="1693232525" data-date-string="Aug 28, 2023" data-time-string="9:22 AM" title="Aug 28, 2023 at 9:22 AM">Aug 28, 2023</time> </div> </div> <footer class="message-footer"> <div class="reactionsBar js-reactionsList "> </div> <div class="js-historyTarget message-historyTarget toggleTarget" data-href="trigger-href"></div> </footer> </div> </div> </div> </article> <!-- RSS here --> <div class="message-cell message-cell--main" id="post-physorg"> <a href="https://phys.org/physics-news/materials/" target="_blank">Physics news</a> on Phys.org <ul class="phys_items"> <li><a href="https://phys.org/news/2024-11-discovery-van-hove-singularities-materials.html" target="_blank">Discovery of van Hove singularities could lead to novel materials with desirable quantum properties</a></li> <li><a href="https://phys.org/news/2024-11-molecule-durable-oleds-displays.html" target="_blank">New organic molecule design can lead to long-lasting, durable OLEDs for displays</a></li> <li><a href="https://phys.org/news/2024-11-topological-2d-materials-spiral-boundary.html" target="_blank">Researchers calculate topological numbers for 2D materials with spiral boundary conditions</a></li> </ul> </div> <article class="message message--post js-post js-inlineModContainer " data-author="berkeman" data-content="post-6926884" id="js-post-6926884" itemscope itemtype="https://schema.org/Comment" itemid="https://www.physicsforums.com/posts/6926884/"> <meta itemprop="parentItem" itemscope itemid="https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/" /> <span class="u-anchorTarget" id="post-6926884"></span> <div class="message-header"> <header class="message-attribution message-attribution--split"> <ul class="message-attribution-main listInline "> <li class="u-concealed"> <time class="u-dt" dir="auto" datetime="2023-08-28T08:59:08-0500" data-time="1693231148" data-date-string="Aug 28, 2023" data-time-string="8:59 AM" title="Aug 28, 2023 at 8:59 AM" itemprop="datePublished">Aug 28, 2023</time> </li> </ul> <ul class="message-attribution-opposite message-attribution-opposite--list "> <li> <span style="cursor:pointer;" data-xf-init="share-tooltip" data-href="/posts/6926884/share" aria-label="Share" role="button" rel="nofollow"> <i class="fa--xf fal fa-share-alt" aria-hidden="true"></i> </span> </li> <li> #2 </li> </ul> </header> </div> <div class="message-inner"> <div class="message-cell message-cell--user"> <section class="message-user" itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://www.physicsforums.com/members/berkeman.8921/"> <meta itemprop="url" content="https://www.physicsforums.com/members/berkeman.8921/" /> <div class="message-userDetails"> <span class="message-name"><a href="/members/berkeman.8921/" class="username " dir="auto" data-user-id="8921" data-xf-init="member-tooltip"><span class="username--staff username--moderator" itemprop="name">berkeman</span></a></span> <!--<h5 class="userTitle message-userTitle" dir="auto" itemprop="jobTitle">A PF Universe</h5>--> <!--<div class="userBanner userBanner userBanner--lightGreen wrapped message-userBanner" itemprop="jobTitle"><span class="userBanner-before"></span><strong>Staff: Mentor</strong><span class="userBanner-after"></span></div>--> <!-- Start Member Achievements --> <div class="post-badges"> <div class="post-badge badge-mentor" data-xf-init="tooltip" title="PF Community Staff"> <i class="fa--xf fal fa-user-graduate" aria-hidden="true"></i><span> Mentor</span> </div> </div> <!-- End Member Achievements --> </div> <div class="message-userExtras"> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-comments fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Messages"></i></dt> <dd>68,297</dd> </dl> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-thumbs-up fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Reaction score"></i></dt> <dd>22,017</dd> </dl> </div> <span class="message-userArrow"></span> </section> </div> <div class="message-cell message-cell--main"> <div class="message-main js-quickEditTarget"> <div class="message-content js-messageContent"> <div class="message-userContent lbContainer js-lbContainer " data-lb-id="post-6926884" data-lb-caption-desc="berkeman · Aug 28, 2023 at 8:59 AM"> <article class="message-body js-selectToQuote"> <div itemprop="text"> <div class="bbWrapper"><blockquote data-attributes="member: 646881" data-quote="UFSJ" data-source="post: 6926869" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> UFSJ said: </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> Hi guys.<br /> <br /> I have tried to simulate the magnetic behavior of a bulk perovskite by Monte Carlo method through the Wang-Landau algorithm. I have used the JDoS description of the phase space. By a reference article the magnetic system can be described by the hamiltonian: </div> </div> </blockquote>Hi Professor, it looks like your post got cut off. Can you try again?</div> </div> <div class="js-selectToQuoteEnd"> </div> </article> </div> </div> <footer class="message-footer"> <div class="message-microdata" itemprop="interactionStatistic" itemtype="https://schema.org/InteractionCounter" itemscope> <meta itemprop="userInteractionCount" content="0" /> <meta itemprop="interactionType" content="https://schema.org/LikeAction" /> </div> <div class="reactionsBar js-reactionsList "> </div> <div class="js-historyTarget message-historyTarget toggleTarget" data-href="trigger-href"></div> </footer> </div> </div> </div> </article> <!-- RSS here --> <article class="message message--post js-post js-inlineModContainer " data-author="UFSJ" data-content="post-6926890" id="js-post-6926890" itemscope itemtype="https://schema.org/Comment" itemid="https://www.physicsforums.com/posts/6926890/"> <meta itemprop="parentItem" itemscope itemid="https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/" /> <span class="u-anchorTarget" id="post-6926890"></span> <div class="message-header"> <header class="message-attribution message-attribution--split"> <ul class="message-attribution-main listInline "> <li class="u-concealed"> <time class="u-dt" dir="auto" datetime="2023-08-28T09:23:16-0500" data-time="1693232596" data-date-string="Aug 28, 2023" data-time-string="9:23 AM" title="Aug 28, 2023 at 9:23 AM" itemprop="datePublished">Aug 28, 2023</time> </li> </ul> <ul class="message-attribution-opposite message-attribution-opposite--list "> <li> <span style="cursor:pointer;" data-xf-init="share-tooltip" data-href="/posts/6926890/share" aria-label="Share" role="button" rel="nofollow"> <i class="fa--xf fal fa-share-alt" aria-hidden="true"></i> </span> </li> <li> #3 </li> </ul> </header> </div> <div class="message-inner"> <div class="message-cell message-cell--user"> <section class="message-user" itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://www.physicsforums.com/members/ufsj.646881/"> <meta itemprop="url" content="https://www.physicsforums.com/members/ufsj.646881/" /> <div class="message-userDetails"> <span class="message-name"><span class="username " dir="auto" data-user-id="646881"><span itemprop="name">UFSJ</span></span></span> <!--<h5 class="userTitle message-userTitle" dir="auto" itemprop="jobTitle">A PF Atom</h5>--> <!----> <span class="threadstarter" data-xf-init="tooltip" title="Thread Starter"><i class="fal fa-user-edit"></i></span> <!-- Start Member Achievements --> <!-- End Member Achievements --> </div> <div class="message-userExtras"> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-comments fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Messages"></i></dt> <dd>15</dd> </dl> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-thumbs-up fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Reaction score"></i></dt> <dd>2</dd> </dl> </div> <span class="message-userArrow"></span> </section> </div> <div class="message-cell message-cell--main"> <div class="message-main js-quickEditTarget"> <div class="message-content js-messageContent"> <div class="message-userContent lbContainer js-lbContainer " data-lb-id="post-6926890" data-lb-caption-desc="UFSJ · Aug 28, 2023 at 9:23 AM"> <article class="message-body js-selectToQuote"> <div class="googleads_fixed"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6580726045122001" crossorigin="anonymous"></script> <!-- PF 2ndPost 300x250 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6580726045122001" data-ad-slot="5961342082" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div itemprop="text"> <div class="bbWrapper"><blockquote data-attributes="member: 8921" data-quote="berkeman" data-source="post: 6926884" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> berkeman said: </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> Hi Professor, it looks like your post got cut off. Can you try again? </div> </div> </blockquote>Thank by the alert. And now, still cut off?</div> </div> <div class="js-selectToQuoteEnd"> </div> </article> </div> </div> <footer class="message-footer"> <div class="message-microdata" itemprop="interactionStatistic" itemtype="https://schema.org/InteractionCounter" itemscope> <meta itemprop="userInteractionCount" content="1" /> <meta itemprop="interactionType" content="https://schema.org/LikeAction" /> </div> <div class="reactionsBar js-reactionsList is-active"> <ul class="reactionSummary"> <li><span class="reaction reaction--small reaction--1" data-reaction-id="1"><i aria-hidden="true"></i><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="reaction-sprite js-reaction" alt="Like" title="Like" /></span></li> </ul> <span class="u-srOnly">Likes</span> <bdi>berkeman</bdi> </div> <div class="js-historyTarget message-historyTarget toggleTarget" data-href="trigger-href"></div> </footer> </div> </div> </div> </article> <!-- RSS here --> <article class="message message--post js-post js-inlineModContainer " data-author="berkeman" data-content="post-6926895" id="js-post-6926895" itemscope itemtype="https://schema.org/Comment" itemid="https://www.physicsforums.com/posts/6926895/"> <meta itemprop="parentItem" itemscope itemid="https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/" /> <span class="u-anchorTarget" id="post-6926895"></span> <div class="message-header"> <header class="message-attribution message-attribution--split"> <ul class="message-attribution-main listInline "> <li class="u-concealed"> <time class="u-dt" dir="auto" datetime="2023-08-28T09:29:26-0500" data-time="1693232966" data-date-string="Aug 28, 2023" data-time-string="9:29 AM" title="Aug 28, 2023 at 9:29 AM" itemprop="datePublished">Aug 28, 2023</time> </li> </ul> <ul class="message-attribution-opposite message-attribution-opposite--list "> <li> <span style="cursor:pointer;" data-xf-init="share-tooltip" data-href="/posts/6926895/share" aria-label="Share" role="button" rel="nofollow"> <i class="fa--xf fal fa-share-alt" aria-hidden="true"></i> </span> </li> <li> #4 </li> </ul> </header> </div> <div class="message-inner"> <div class="message-cell message-cell--user"> <section class="message-user" itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://www.physicsforums.com/members/berkeman.8921/"> <meta itemprop="url" content="https://www.physicsforums.com/members/berkeman.8921/" /> <div class="message-userDetails"> <span class="message-name"><a href="/members/berkeman.8921/" class="username " dir="auto" data-user-id="8921" data-xf-init="member-tooltip"><span class="username--staff username--moderator" itemprop="name">berkeman</span></a></span> <!--<h5 class="userTitle message-userTitle" dir="auto" itemprop="jobTitle">A PF Universe</h5>--> <!--<div class="userBanner userBanner userBanner--lightGreen wrapped message-userBanner" itemprop="jobTitle"><span class="userBanner-before"></span><strong>Staff: Mentor</strong><span class="userBanner-after"></span></div>--> <!-- Start Member Achievements --> <div class="post-badges"> <div class="post-badge badge-mentor" data-xf-init="tooltip" title="PF Community Staff"> <i class="fa--xf fal fa-user-graduate" aria-hidden="true"></i><span> Mentor</span> </div> </div> <!-- End Member Achievements --> </div> <div class="message-userExtras"> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-comments fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Messages"></i></dt> <dd>68,297</dd> </dl> <dl class="pairs pairs--justified"> <dt><i class="fa--xf fal fa-thumbs-up fa-fw" aria-hidden="true" data-xf-init="tooltip" title="Reaction score"></i></dt> <dd>22,017</dd> </dl> </div> <span class="message-userArrow"></span> </section> </div> <div class="message-cell message-cell--main"> <div class="message-main js-quickEditTarget"> <div class="message-content js-messageContent"> <div class="message-userContent lbContainer js-lbContainer " data-lb-id="post-6926895" data-lb-caption-desc="berkeman · Aug 28, 2023 at 9:29 AM"> <article class="message-body js-selectToQuote"> <div itemprop="text"> <div class="bbWrapper">Nope, looks fine now. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":smile:" title="Smile :smile:" loading="lazy" data-shortname=":smile:" /></div> </div> <div class="js-selectToQuoteEnd"> </div> </article> </div> </div> <footer class="message-footer"> <div class="message-microdata" itemprop="interactionStatistic" itemtype="https://schema.org/InteractionCounter" itemscope> <meta itemprop="userInteractionCount" content="1" /> <meta itemprop="interactionType" content="https://schema.org/LikeAction" /> </div> <div class="reactionsBar js-reactionsList is-active"> <ul class="reactionSummary"> <li><span class="reaction reaction--small reaction--1" data-reaction-id="1"><i aria-hidden="true"></i><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="reaction-sprite js-reaction" alt="Like" title="Like" /></span></li> </ul> <span class="u-srOnly">Likes</span> <bdi>UFSJ</bdi> </div> <div class="js-historyTarget message-historyTarget toggleTarget" data-href="trigger-href"></div> </footer> <script> if (typeof parseNewPost == 'function') { $(document).ajaxStop(parseNewPost(6926895)); } </script> </div> </div> </div> </article> </div> </div> </div> <form action="/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/add-reply" method="post" class="block js-quickReply" data-xf-init="attachment-manager quick-reply ajax-submit draft" data-draft-url="/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/draft" data-draft-autosave="60" data-captcha-context="xf_guest_thread_quick_reply" data-message-container="div[data-type='post'] .js-replyNewMessageContainer" > <input type="hidden" name="_xfToken" value="1732492379,1ebe5ae4944cb3b46d0e94c900cb4085" /> <div class="block-container"> <div class="block-body"> <div class="message message--quickReply block-topRadiusContent block-bottomRadiusContent"> <div class="message-inner"> <div class="message-cell message-cell--user"> <div class="message-user "> <div class="message-avatar"> <div class="message-avatar-wrapper"> <span class="avatar avatar--m avatar--default avatar--default--text" data-user-id="0"> <span class="avatar-u0-m"></span> </span> </div> </div> <span class="message-userArrow"></span> </div> </div> <div class="message-cell message-cell--main"> <div class="message-editorWrapper tex2jax_ignore"> <textarea name="message" class="input input--fitHeight js-editor" style="min-height: 100px; " data-xf-init="textarea-handler user-mentioner emoji-completer draft-trigger" aria-label="Rich text box" data-min-height="100" placeholder="Write your reply..." data-deferred="off" data-xf-key="r" data-preview-url="/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/reply-preview"></textarea> <div class="js-captchaContainer" data-row-type="fullWidth noGutter"></div> <noscript><input type="hidden" name="no_captcha" value="1" /></noscript> <div class="formButtonGroup "> <div class="formButtonGroup-primary"> <button type="submit" class="button--primary button button--icon button--icon--reply"><span class="button-text"> Post reply </span></button> </div> <div class="formButtonGroup-extra"> <button type="button" class="button--link button--multiQuote button button--icon button--icon--quote" style="display: none;" data-xf-init="multi-quote" data-href="/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/multi-quote" data-message-selector=".js-post" data-storage-key="multiQuoteThread" data-add-message="Message added to multi-quote." data-remove-message="Message removed from multi-quote."><span class="button-text"> Insert quotes… </span></button> </div> <input type="hidden" name="last_date" value="1693232966" autocomplete="off" /> <input type="hidden" name="last_known_date" value="1693232966" autocomplete="off" /> <input type="hidden" name="load_extra" value="1" /> </div> </div> </div> </div> </div> </div> </div> </form> <div class="block" data-widget-id="119" data-widget-key="xfes_thread_view_below_quick_reply_similar_threads" data-widget-definition="xfes_similar_threads"> <div class="block-container"> <h3 class="block-header">Similar threads</h3> <div class="block-body"> <div class="structItemContainer"> <div class="structItem structItem--thread is-prefix95 js-inlineModContainer js-threadListItem-1058366" data-author="physicsuser2023"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix gray" dir="auto">Fortran</span> <a href="/threads/errors-in-fortran-code-for-solving-laplaces-equation-in-3d.1058366/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/errors-in-fortran-code-for-solving-laplaces-equation-in-3d.1058366/preview">Errors in Fortran code for solving Laplace's equation in 3D</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2023-12-19T12:32:25-0600" data-time="1703010745" data-date-string="Dec 19, 2023" data-time-string="12:32 PM" title="Dec 19, 2023 at 12:32 PM">Dec 19, 2023</time></li> <!-- Programming and Computer Science --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>4</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>2K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix95 js-inlineModContainer js-threadListItem-1047994" data-author="Nikolas_Ex_Aguirre"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix gray" dir="auto">Fortran</span> <a href="/threads/need-help-with-jacobi-relaxation-method-for-dirichlet-boundary-conditions.1047994/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/need-help-with-jacobi-relaxation-method-for-dirichlet-boundary-conditions.1047994/preview">Need help with Jacobi relaxation method for Dirichlet boundary conditions</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2022-12-08T18:42:44-0600" data-time="1670546564" data-date-string="Dec 8, 2022" data-time-string="6:42 PM" title="Dec 8, 2022 at 6:42 PM">Dec 8, 2022</time></li> <!-- Programming and Computer Science --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>1</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>1K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix91 js-inlineModContainer js-threadListItem-1005757" data-author="uart"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix inter" dir="auto">I</span> <a href="/threads/prove-series-identity-alternating-reciprocal-factorial-sum.1005757/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/prove-series-identity-alternating-reciprocal-factorial-sum.1005757/preview">Prove series identity (Alternating reciprocal factorial sum)</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2021-08-03T21:50:55-0500" data-time="1628045455" data-date-string="Aug 3, 2021" data-time-string="9:50 PM" title="Aug 3, 2021 at 9:50 PM">Aug 3, 2021</time></li> <!-- General Math --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>4</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>2K</dd> </dl> </div> </div> <div class="structItem structItem--thread js-inlineModContainer js-threadListItem-955249" data-author="Dazzabaijan"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <a href="/threads/integration-of-spherical-harmonics-with-a-gaussian-qm.955249/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/integration-of-spherical-harmonics-with-a-gaussian-qm.955249/preview">Integration of Spherical Harmonics with a Gaussian (QM)</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2018-09-14T19:49:04-0500" data-time="1536972544" data-date-string="Sep 14, 2018" data-time-string="7:49 PM" title="Sep 14, 2018 at 7:49 PM">Sep 14, 2018</time></li> <!-- Calculus and Beyond Homework Help --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>1</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>1K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-locked js-inlineModContainer js-threadListItem-936754" data-author="ulfaazmi"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <a href="/threads/testing-floating-point-numbers-for-equality.936754/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/testing-floating-point-numbers-for-equality.936754/preview">Testing floating point numbers for equality</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2018-01-29T08:28:20-0600" data-time="1517236100" data-date-string="Jan 29, 2018" data-time-string="8:28 AM" title="Jan 29, 2018 at 8:28 AM">Jan 29, 2018</time></li> <!-- Programming and Computer Science --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>7</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>2K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix92 is-locked js-inlineModContainer js-threadListItem-993268" data-author="paklin2"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix advanced" dir="auto">A</span> <a href="/threads/matrices-from-spherical-harmonics-with-eigenvalue-l-1.993268/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/matrices-from-spherical-harmonics-with-eigenvalue-l-1.993268/preview">Matrices from Spherical Harmonics with Eigenvalue l+1</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2020-09-19T12:13:14-0500" data-time="1600535594" data-date-string="Sep 19, 2020" data-time-string="12:13 PM" title="Sep 19, 2020 at 12:13 PM">Sep 19, 2020</time></li> <!-- Quantum Physics --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>14</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>1K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-locked js-inlineModContainer js-threadListItem-743855" data-author="s_hy"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <a href="/threads/fdtd-fortran-problem-with-tfsf-boundary-and-berengers-pml.743855/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/fdtd-fortran-problem-with-tfsf-boundary-and-berengers-pml.743855/preview">[FDTD/FORTRAN] problem with tfsf boundary and berenger's pml</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2014-03-18T04:13:40-0500" data-time="1395134020" data-date-string="Mar 18, 2014" data-time-string="4:13 AM" title="Mar 18, 2014 at 4:13 AM">Mar 18, 2014</time></li> <!-- Atomic and Condensed Matter --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>8</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>4K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix132 js-inlineModContainer js-threadListItem-965968" data-author="Indigo_Blue"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix grass" dir="auto">Comp Sci</span> <a href="/threads/why-is-my-java-monte-carlo-simulation-not-approximating-pi-accurately.965968/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/why-is-my-java-monte-carlo-simulation-not-approximating-pi-accurately.965968/preview">Why Is My Java Monte Carlo Simulation Not Approximating Pi Accurately?</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2019-02-11T16:36:01-0600" data-time="1549924561" data-date-string="Feb 11, 2019" data-time-string="4:36 PM" title="Feb 11, 2019 at 4:36 PM">Feb 11, 2019</time></li> <!-- Engineering and Comp Sci Homework Help --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 0"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>4</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>2K</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix91 is-locked js-inlineModContainer js-threadListItem-1061915" data-author="member 728827"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix inter" dir="auto">I</span> <a href="/threads/einstein-brother-in-law-elevator.1061915/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/einstein-brother-in-law-elevator.1061915/preview">Einstein brother-in-law elevator</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2024-04-18T10:18:06-0500" data-time="1713453486" data-date-string="Apr 18, 2024" data-time-string="10:18 AM" title="Apr 18, 2024 at 10:18 AM">Apr 18, 2024</time></li> <!-- Special and General Relativity --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 1"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>11</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>939</dd> </dl> </div> </div> <div class="structItem structItem--thread is-prefix91 is-locked js-inlineModContainer js-threadListItem-992124" data-author="Ryder Rude"> <div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy"> <div class="structItem-title"> <span class="prefix inter" dir="auto">I</span> <a href="/threads/deriving-lorentz-transformations-using-calculus.992124/" class="" data-tp-primary="on" data-xf-init="preview-tooltip" data-preview-url="/threads/deriving-lorentz-transformations-using-calculus.992124/preview">Deriving Lorentz Transformations Using Calculus</a> </div> <div class="structItem-minor"> <ul class="structItem-parts"> <li class="structItem-startDate"><time class="structItem-latestDate u-dt" dir="auto" datetime="2020-08-08T10:58:54-0500" data-time="1596902334" data-date-string="Aug 8, 2020" data-time-string="10:58 AM" title="Aug 8, 2020 at 10:58 AM">Aug 8, 2020</time></li> <!-- Special and General Relativity --> </ul> <ul class="structItem-parts"> </ul> </div> </div> <div class="structItem-cell structItem-cell--meta" title="First message reaction score: 1"> <dl class="pairs pairs--justified"> <dt>Replies</dt> <dd>18</dd> </dl> <dl class="pairs pairs--justified structItem-minor"> <dt>Views</dt> <dd>2K</dd> </dl> </div> </div> </div> </div> </div> </div> <div class="blockMessage blockMessage--none"> <div class="shareButtons shareButtons--iconic" data-xf-init="share-buttons" data-page-url="" data-page-title="" data-page-desc="" data-page-image=""> <span class="shareButtons-label">Share:</span> <div class="shareButtons-buttons"> <a class="shareButtons-button shareButtons-button--share is-hidden" data-xf-init="web-share" data-title="" data-text="" data-url="" data-hide=".shareButtons-button:not(.shareButtons-button--share)"> <i aria-hidden="true"></i> <span>Share</span> </a> </div> </div> </div> <div class="p-breadcrumbs--parent p-breadcrumbs--bottom"> <ul class="p-breadcrumbs p-breadcrumbs--bottom" itemscope itemtype="https://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="https://www.physicsforums.com/" itemprop="item"> <span itemprop="name">Forums</span> </a> <meta itemprop="position" content="1" /> </li> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="/#physics.9" itemprop="item"> <span itemprop="name">Physics</span> </a> <meta itemprop="position" content="2" /> </li> <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="/forums/atomic-and-condensed-matter.64/" itemprop="item"> <span itemprop="name">Atomic and Condensed Matter</span> </a> <meta itemprop="position" content="3" /> </li> </ul> </div> </div> </div> <div class="p-sidebarWrapper"> <div class="p-body-sidebar"> <div class="block" data-widget-id="64" data-widget-key="hotcontent" data-widget-definition="wte_thread_enhancement"> <div class="block-container"> <h3 class="block-minorHeader">Hot Threads</h3> <ul class="block-body"> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/calculation-of-absorption-edges-of-niobium.1064512/" title="Calculation of absorption edges of Niobium" > <span class="prefix inter" dir="auto">I</span><span class="label-append"> </span>Calculation of absorption edges of Niobium </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/band-structure-in-solids-versus-superconductivity.1064069/" title="Band Structure in solids versus Superconductivity" > <span class="prefix advanced" dir="auto">A</span><span class="label-append"> </span>Band Structure in solids versus Superconductivity </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/bulk-and-slab-electronic-structure-differences.1063839/" title="Bulk and Slab electronic structure differences" > <span class="prefix advanced" dir="auto">A</span><span class="label-append"> </span>Bulk and Slab electronic structure differences </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/gap-equations-plotting-error-in-python-need-help-debugging.1063751/" title="Gap Equations Plotting Error in Python: Need Help Debugging" > <span class="prefix inter" dir="auto">I</span><span class="label-append"> </span>Gap Equations Plotting Error in Python: Need Help Debugging </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/raman-spectroscopy-calculations.1064150/" title="Raman spectroscopy calculations" > <span class="prefix inter" dir="auto">I</span><span class="label-append"> </span>Raman spectroscopy calculations </a> </div> </div> </li> </ul> </div> </div> <div class="block" data-widget-id="67" data-widget-key="recent_insights" data-widget-definition="wte_thread_enhancement"> <div class="block-container"> <h3 class="block-minorHeader">Recent Insights</h3> <ul class="block-body"> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/brownian-motions-and-quantifying-randomness-in-physical-systems.1065302/" title="Brownian Motions and Quantifying Randomness in Physical Systems" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>Brownian Motions and Quantifying Randomness in Physical Systems </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/pbs-video-comment-what-if-physics-is-not-describing-reality.1064523/" title="PBS Video Comment: “What If Physics IS NOT Describing Reality”" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>PBS Video Comment: “What If Physics IS NOT Describing Reality” </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/aspects-behind-the-concept-of-dimension-in-various-fields.1063793/" title="Aspects Behind the Concept of Dimension in Various Fields" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>Aspects Behind the Concept of Dimension in Various Fields </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/views-on-complex-numbers.1063397/" title="Views On Complex Numbers" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>Views On Complex Numbers </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/addition-of-velocities-velocity-composition-in-special-relativity.1062863/" title="Addition of Velocities (Velocity Composition) in Special Relativity" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>Addition of Velocities (Velocity Composition) in Special Relativity </a> </div> </div> </li> <li class="block-row"> <div class="contentRow"> <div class="contentRow-main contentRow-main--close"> <a href="/threads/schroedingers-cat-and-the-qbit.1061433/" title="Schrödinger’s Cat and the Qbit" > <span class="prefix insight" dir="auto">Insights</span><span class="label-append"> </span>Schrödinger’s Cat and the Qbit </a> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> <!-- closing xb-content-wrapper --> <footer class="p-footer" id="footer"> <div class="p-footer--container"> <div class="p-footer-default"> <div class="p-footer-inner"> <div class="p-footer-row"> <div class="p-footer-row-main"> <ul class="p-footer-linkList"> <li class="p-linkList-changeWidth"><a class="pageWidthToggle xb-toggle-default" role="button" tabindex="0" data-xf-click="toggle" data-target="html" data-active-class="xb-toggle-default" data-xf-init="toggle-storage" data-storage-type="cookie" data-storage-expiry="31556926" data-storage-key="_xb-width"> Change width </a></li> </ul> </div> <div class="p-footer-row-opposite"> <ul class="p-footer-linkList"> <li><a href="/misc/contact">Contact</a></li> <li><a href="https://www.physicsforums.com/insights/about-physics-forums/">About</a></li> <li><a href="https://www.physicsforums.com/help/terms-of-service/">Terms</a></li> <li><a href="https://www.physicsforums.com/help/member-privacy-policy/">Privacy</a></li> <li><a href="/help/">Help</a></li> <li><a href="/forums/-/index.rss" target="_blank" class="p-footer-rssLink" title="RSS"><span aria-hidden="true"><i class="fa--xf fal fa-rss" aria-hidden="true"></i><span class="u-srOnly">RSS</span></span></a></li> </ul> </div> </div> </div> </div> <div class="p-footer-copyright"> <div class="p-footer-inner"> <div class="p-footer-copyright--flex"> <div class="copyright-left"> 2024 © Physics Forums, All Rights Reserved </div> </div> </div> </div> </div> </footer> </div> <!-- closing p-pageWrapper --> </div> <!-- closing xb-pageWrapper --> <div class="u-bottomFixer js-bottomFixTarget"> </div> <div class="u-navButtons js-navButtons" data-trigger-type="up"> <a href="javascript:" class="button--scroll button"><span class="button-text"><i class="fa--xf fal fa-arrow-left" aria-hidden="true"></i><span class="u-srOnly">Back</span></span></a> </div> <div class="u-scrollButtons js-scrollButtons" data-trigger-type="up"> <a href="#top" class="button--scroll button" data-xf-click="scroll-to"><span class="button-text"><i class="fa--xf fal fa-arrow-up" aria-hidden="true"></i><span class="u-srOnly">Top</span></span></a> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><script>window.jQuery || document.write('<script src="/js/vendor/jquery/jquery-3.5.1.min.js?_v=637e8561"><\/script>')</script> <script src="/js/vendor/vendor-compiled.js?_v=637e8561"></script> <script src="/js/xf/core-compiled.js?_v=637e8561"></script> <script src="/js/xf/code_block-compiled.js?_v=637e8561"></script> <script src="/js/prism_additional/prism-fortran.min.js?_v=637e8561"></script> <script src="/js/prism_additional/prism-matlab.min.js?_v=637e8561"></script> <script src="/js/CMTV/Code/vendor/prism-plugins/line-numbers.min.js?_v=637e8561"></script> <script src="/js/CMTV/Code/vendor/prism-plugins/line-highlight.min.js?_v=637e8561"></script> <script src="/js/CMTV/Code/code-block.min.js?_v=637e8561"></script> <script src="/js/CMTV/Code/code-block-actions.min.js?_v=637e8561"></script> <script src="/js/CMTV/Code/code-block-resizer.min.js?_v=637e8561"></script> <script src="/js/xf/message.min.js?_v=637e8561"></script> <script src="/js/xf/captcha.min.js?_v=637e8561"></script> <script> var sb=$("div.shareButtons.shareButtons--iconic");if(sb.length){var o=new IntersectionObserver(function(a){a[0].isIntersecting&&($(".has-no-fa-brands").removeClass("has-no-fa-brands"),this.disconnect())},{rootMargin:"200px"});sb.each(function(){XF.isElementVisible($(this))&&$(".has-no-fa-brands").removeClass("has-no-fa-brands");o.observe($(this)[0])})}; </script> <script> if (typeof jqProxy !== 'undefined') { jQuery = jqProxy; } </script> <script> jQuery.extend(true, XF.config, { // xlink: { platformId: 0 }, userId: 0, enablePush: true, pushAppServerKey: 'BHawDCc5f/kxves/mySH6irZC+n8kQpwVp6mw8IItmRcI/R6qHIwbanIkiZvdq/o+uUlVEU0XDw0ctRSlmUne1w=', url: { fullBase: 'https://www.physicsforums.com/', basePath: '/', css: '/css.php?css=__SENTINEL__&s=12&l=1&d=1728569821', keepAlive: '/login/keep-alive' }, cookie: { path: '/', domain: '', prefix: 'xf_', secure: true, consentMode: 'disabled', consented: ["optional","_third_party"] }, cacheKey: '3d79291bf12cdbc07f4377a513c5011d', csrf: '1732492379,1ebe5ae4944cb3b46d0e94c900cb4085', js: {"\/js\/xf\/code_block-compiled.js?_v=637e8561":true,"\/js\/prism_additional\/prism-fortran.min.js?_v=637e8561":true,"\/js\/prism_additional\/prism-matlab.min.js?_v=637e8561":true,"\/js\/CMTV\/Code\/vendor\/prism-plugins\/line-numbers.min.js?_v=637e8561":true,"\/js\/CMTV\/Code\/vendor\/prism-plugins\/line-highlight.min.js?_v=637e8561":true,"\/js\/CMTV\/Code\/code-block.min.js?_v=637e8561":true,"\/js\/CMTV\/Code\/code-block-actions.min.js?_v=637e8561":true,"\/js\/CMTV\/Code\/code-block-resizer.min.js?_v=637e8561":true,"\/js\/xf\/message.min.js?_v=637e8561":true,"\/js\/xf\/captcha.min.js?_v=637e8561":true}, css: {"public:CMTV_Code_Prism_plugins.less":true,"public:CMTV_Code_code_block.less":true,"public:bb_code.less":true,"public:message.less":true,"public:pf_first_post_rss.css":true,"public:physicsforums_badges.less":true,"public:share_controls.less":true,"public:structured_list.less":true,"public:thxpress_xf.less":true,"public:xb.less":true,"public:extra.less":true}, time: { now: 1732492379, today: 1732428000, todayDow: 0, tomorrow: 1732514400, yesterday: 1732341600, week: 1731909600 }, borderSizeFeature: '3px', fontAwesomeWeight: 'l', enableRtnProtect: true, enableFormSubmitSticky: true, uploadMaxFilesize: 62914560, allowedVideoExtensions: ["m4v","mov","mp4","mp4v","mpeg","mpg","ogv","webm"], allowedAudioExtensions: ["mp3","opus","ogg","wav"], shortcodeToEmoji: true, visitorCounts: { conversations_unread: '0', alerts_unviewed: '0', total_unread: '0', title_count: true, icon_indicator: true }, jsState: {}, publicMetadataLogoUrl: 'https://www.physicsforums.com/styles/physicsforums/images/physics-forums-logo-og.png', publicPushBadgeUrl: 'https://www.physicsforums.com/styles/default/xenforo/bell.png' }); jQuery.extend(XF.phrases, { // CMTV_Code_copied: "Code copied to clipboard.", date_x_at_time_y: "{date} at {time}", day_x_at_time_y: "{day}, {time}", yesterday_at_x: "Yesterday, {time}", x_minutes_ago: "{minutes} minutes ago", one_minute_ago: "1 minute ago", a_moment_ago: "A moment ago", today_at_x: "Today, {time}", in_a_moment: "In a moment", in_a_minute: "In a minute", in_x_minutes: "In {minutes} minutes", later_today_at_x: "Later today at {time}", tomorrow_at_x: "Tomorrow at {time}", day0: "Sunday", day1: "Monday", day2: "Tuesday", day3: "Wednesday", day4: "Thursday", day5: "Friday", day6: "Saturday", dayShort0: "Sun", dayShort1: "Mon", dayShort2: "Tue", dayShort3: "Wed", dayShort4: "Thu", dayShort5: "Fri", dayShort6: "Sat", month0: "January", month1: "February", month2: "March", month3: "April", month4: "May", month5: "June", month6: "July", month7: "August", month8: "September", month9: "October", month10: "November", month11: "December", active_user_changed_reload_page: "The active user has changed. Reload the page for the latest version.", server_did_not_respond_in_time_try_again: "The server did not respond in time. Please try again.", oops_we_ran_into_some_problems: "Oops! We ran into some problems.", oops_we_ran_into_some_problems_more_details_console: "Oops! We ran into some problems. Please try again later. More error details may be in the browser console.", file_too_large_to_upload: "The file is too large to be uploaded.", uploaded_file_is_too_large_for_server_to_process: "The uploaded file is too large for the server to process.", files_being_uploaded_are_you_sure: "Files are still being uploaded. Are you sure you want to submit this form?", attach: "Attach files", rich_text_box: "Rich text box", close: "Close", link_copied_to_clipboard: "Link copied to clipboard.", text_copied_to_clipboard: "Text copied to clipboard.", loading: "Loading…", you_have_exceeded_maximum_number_of_selectable_items: "You have exceeded the maximum number of selectable items.", processing: "Processing", 'processing...': "Processing…", showing_x_of_y_items: "Showing {count} of {total} items", showing_all_items: "Showing all items", no_items_to_display: "No items to display", number_button_up: "Increase", number_button_down: "Decrease", push_enable_notification_title: "Push notifications enabled successfully at Physics Forums: Science Discussion, Homework Help, Articles", push_enable_notification_body: "Thank you for enabling push notifications!", pull_down_to_refresh: "Pull down to refresh", release_to_refresh: "Release to refresh", refreshing: "Refreshing…" , "svStandardLib_time.day": "{count} day", "svStandardLib_time.days": "{count} days", "svStandardLib_time.hour": "{count} hour", "svStandardLib_time.hours": "{count} hours", "svStandardLib_time.minute": "{count} minutes", "svStandardLib_time.minutes": "{count} minutes", "svStandardLib_time.month": "{count} month", "svStandardLib_time.months": "{count} months", "svStandardLib_time.second": "{count} second", "svStandardLib_time.seconds": "{count} seconds", "svStandardLib_time.week": "time.week", "svStandardLib_time.weeks": "{count} weeks", "svStandardLib_time.year": "{count} year", "svStandardLib_time.years": "{count} years" }); </script> <form style="display:none" hidden="hidden"> <input type="text" name="_xfClientLoadTime" value="" id="_xfClientLoadTime" title="_xfClientLoadTime" tabindex="-1" /> </form> <!-- XenBase Version: 2.2.14 --> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebPage", "url": "https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/", "mainEntity": { "@type": "DiscussionForumPosting", "@id": "https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/", "headline": "Monte Carlo Wang-Landau_antiferromagnetic perovskite", "datePublished": "2023-08-28T13:02:53+00:00", "url": "https://www.physicsforums.com/threads/monte-carlo-wang-landau_antiferromagnetic-perovskite.1055241/", "articleSection": "Atomic and Condensed Matter", "author": { "@type": "Person", "@id": "https://www.physicsforums.com/members/ufsj.646881/", "name": "UFSJ", "url": "https://www.physicsforums.com/members/ufsj.646881/" }, "interactionStatistic": [ { "@type": "InteractionCounter", "interactionType": "https://schema.org/ViewAction", "userInteractionCount": 1830 }, { "@type": "InteractionCounter", "interactionType": "https://schema.org/CommentAction", "userInteractionCount": 3 }, { "@type": "InteractionCounter", "interactionType": "https://schema.org/LikeAction", "userInteractionCount": 0 } ], "dateModified": "2023-08-28T14:22:05+00:00", "articleBody": "Hi guys.\n\nUsing the Wang-Landau algorithm, I have tried to simulate the magnetic behavior of a bulk perovskite by the Monte Carlo method. I have used the JDoS description to build the Energy x magnetization phase space. By a referencing article, this magnetic system can be described by the Hamiltonian:\nH = - 2J1 \u2211 Si Sj - 2J2 \u2211 Si\nSk - D \u2211 Si 2, where J1 is the exchange constant between two spins of the same basal plane (0.83 meV), J2 is the exchange constant between two different basal planes (- 0.58 meV), D is the anisotropic constant (0.165 meV) and the experimental TN = 139.5 K. This compound is an A-type N\u00e9el antiferromagnetic. Below, I share my Wang-Landau program to obtain the density of states (actually to obtain the ln[g(E,m)]) written in Fortran 90. Can anyone point out where my error is? I am obtaining a phase transition temperature at 75 K.\n\nThanks!\nPROGRAM Perov_4est_JDoS\nIMPLICIT NONE\n\nINTEGER, PARAMETER :: lz = 20 ! lattice length\nINTEGER, PARAMETER :: ly = 20\nINTEGER, PARAMETER :: lx = 20\nINTEGER, PARAMETER :: n = lx*ly*lz ! number of spins\nINTEGER, PARAMETER :: ff = 25 ! number of loops applying the modification factor e^0.5\n \nREAL, PARAMETER :: flat = 0.95 ! the flatness parameter\nINTEGER, PARAMETER :: cond = 1 ! if cond =1 the boundary conditions is ON, if cond = 0 is OFF\n\nREAL, PARAMETER :: J1 = 2*0.83 ! exchange constant in the same basal plane in units of de meV\nREAL, PARAMETER :: J2 = 2*(-0.58) ! exchange constant between basal planes in units of de meV\nREAL, PARAMETER :: D = 0.1*J1 ! anisotropic constant in units of meV\n\nREAL, PARAMETER :: E_max = n*((J1*16 - J2*8)/2 - D*4) ! maximum energy value\n\nINTEGER, PARAMETER :: bin_E = 10**4 ! maximum number of different energy values to be get\nINTEGER, PARAMETER :: bin_m = 10**4 ! maximum number of different magnetization values to be get\n\nINTEGER :: r, k, q, r1, r2, k1, k2, px, py, pz, pV, pG, pr, pf, ping, pong, idum, sf\nREAL :: Ei, Ef, mi, mf, E_latt, M_latt, E, m\nDOUBLE PRECISION :: test, E_fund, h_sum, f, ln_Ohm_fund\n\nINTEGER, DIMENSION (bin_E,bin_m) :: h, h_acum ! matrix Histograma and accumulated Histograma\nDOUBLE PRECISION, DIMENSION (bin_E,bin_m) :: g ! matrix of the log of density of states\nREAL, DIMENSION (bin_E) :: E_val ! array of energy values\nREAL, DIMENSION (bin_m) :: m_val ! array of magnetization values\n\nINTEGER, DIMENSION (n+1) :: s ! spin ! array os the values of the spin\n\nINTEGER, DIMENSION (n) :: sv1 ! at right ! arrays of the neighbor's position along the spin chain\nINTEGER, DIMENSION (n) :: sv2 ! at left\nINTEGER, DIMENSION (n) :: sv3 ! in the next line\nINTEGER, DIMENSION (n) :: sv4 ! in the bottom line\nINTEGER, DIMENSION (n) :: sv5 ! in the up basal plane\nINTEGER, DIMENSION (n) :: sv6 ! in the down basal plane\n\nCHARACTER(LEN = 70) :: txt\n\nREAL :: rd, xrand\nidum = 123456789\ns(n+1) = 0\n\n! Array of first neighbors\nDO pz=1,lz\nDO py=1,ly\nDO px=1,lx\nr = px + lx*(py - 1) + lx*ly*(pz - 1)\n\nsv1(r) = r + 1 ! at right\nsv2(r) = r - 1 ! at left\nsv3(r) = r + lx ! in the next line\nsv4(r) = r - lx ! in the bottom line\nsv5(r) = r + lx*ly ! up\nsv6(r) = r - lx*ly ! down\n\nEND DO\nEND DO\nEND DO! Boundary condition\nIF (cond==1) THEN ! boundary condition ON\nDO pz=1,lz\nDO py=1,ly\nDO px=1,lx\nr = px + lx*(py - 1) + lx*ly*(pz - 1)\n\nIF(px==lx) THEN\nsv1(r) = r - lx + 1 ! at right\nEND IF\nIF(px==1) THEN\nsv2(r) = r + lx - 1 ! at left\nEND IF\n\nIF(py==ly) THEN\nsv3(r) = r - lx*(ly - 1) ! in the next line\nEND IF\nIF(py==1) THEN\nsv4(r) = r + lx*(ly - 1) ! in the line before\nEND IFIF(pz==lz) THEN\nsv5(r) = r - lx*ly*(lz - 1) ! up\nEND IF\nIF(pz==1) THEN\nsv6(r) = r + lx*ly*(lz - 1) ! down\nEND IF\n\nEND DO\nEND DO\nEND DOELSE IF (cond==0) THEN ! boundary condition OFF\nDO pz=1,lz\nDO py=1,ly\nDO px=1,lx\nr = px + lx*(py - 1) + lx*ly*(pz - 1)\n\nIF(px==1) THEN\nsv2(r) = n + 1 ! at left\nEND IF\nIF(px==lx) THEN\nsv1(r) = n + 1 ! at right\nEND IF\n\nIF(py==1) THEN\nsv4(r) = n + 1 ! in the line before\nEND IF\nIF(py==ly) THEN\nsv3(r) = n + 1 ! in the next line\nEND IF\n\nIF(pz==1) THEN\nsv5(r) = n + 1 ! up\nEND IF\nIF(pz==lz) THEN\nsv6(r) = n + 1 ! down\nEND IF\n\nEND DO\nEND DO\nEND DO\n\nEND IF\n\n!!!!! Building the phase space E x m and updating the ln[g(E,m)] and histogram\nDO r=1,bin_E\nDO k=1,bin_m\n g(r,k)= 1\n h_acum(r,k) = 0\n E_val(r) = 123456789 ! filling the energy and magnetization arrays with any wrong values. As a new state is observed, these values will be updating\n m_val(k) = 123456789\nEND DO\nEND DO\nDO k=1,n ! defining values for the spin-lattice\nrd = xrand(idum)\n IF (rd<=0.2) THEN\n s(k) = - 2\n ELSE IF ((0.2<rd).AND.(rd<=0.4)) THEN\n s(k) = - 1\n ELSE IF ((0.4<rd).AND.(rd<=0.6)) THEN\n s(k) = 0\n ELSE IF ((0.6<rd).AND.(rd<=0.8)) THEN\n s(k) = 1\n ELSE IF (0.8<rd) THEN\n s(k) = 2\n END IF\nEND DO\n\nE_latt = 0\nM_latt = 0\nDO k=1,n ! obtaining the initial values of energy and magnetization of the chain\n E_latt = E_latt - s(k)*( J1*( s(sv1(k)) + s(sv2(k)) + s(sv3(k)) + s(sv4(k)) )/2 + J2*( s(sv5(k)) + s(sv6(k)) )/2 + D*s(k) )\n M_latt = M_latt + s(k)\nEND DO\nEi = E_latt\nmi= M_latt\nE_val(1) = Ei\nm_val(1) = mi\nDO pf=1,ff ! defining the value of the modification factor\nf = exp(1.0)**( 1/(2**(pf - 1.0) ) )\n\n DO r=1,bin_E\n DO k=1,bin_m\n h(r,k)= 0 ! histogram\n END DO\n END DO\n\nprint*, 'pf-', pf\nping = 0\nDO WHILE (ping==0) ! the beginning of the loop responsible for the flatness test\n\nDO pV=1,n*10**6 ! Monte Carlo loops testing new configuration of the chain\n\nrd = xrand(idum) ! random choice of a spin \"q\" to be flipped\nq = NINT(n*rd)\nIF(q==0) THEN\n q = n\nEND IF\n\nrd = xrand(idum) ! Analyzing the flip of the spin \"q\"\nIF (s(q)==-2) THEN\n IF (rd<=0.25) THEN\n sf = - 1\n ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN\n sf = 0\n ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN\n sf = 1\n ELSE IF (0.75<rd) THEN\n sf = 2\n END IF\n \nELSE IF (s(q)==-1) THEN\n IF (rd<=0.25) THEN\n sf = - 2\n ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN\n sf = 0\n ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN\n sf = 1\n ELSE IF (0.75<rd) THEN\n sf = 2\n END IF\n\nELSE IF (s(q)==0) THEN\n IF (rd<=0.25) THEN\n sf = - 2\n ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN\n sf = - 1\n ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN\n sf = 1\n ELSE IF (0.75<rd) THEN\n sf = 2\n END IF\n\nELSE IF (s(q)==1) THEN\n IF (rd<=0.25) THEN\n sf = - 2\n ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN\n sf = - 1\n ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN\n sf = 0\n ELSE IF (0.75<rd) THEN\n sf = 2\n END IF\n\nELSE IF (s(q)==2) THEN\n IF (rd<=0.25) THEN\n sf = - 2\n ELSE IF ((0.25<rd).AND.(rd<=0.5)) THEN\n sf = - 1\n ELSE IF ((0.5<rd).AND.(rd<=0.75)) THEN\n sf = 0\n ELSE IF (0.75<rd) THEN\n sf = 1\n END IF\n\nEND IF\n ! Calculating the value of energy and magnetization of the possible final state with the flip of the spin \"q\"\nEf = Ei - (sf - s(q))*( J1*( s(sv1(q)) + s(sv2(q)) + s(sv3(q)) + s(sv4(q)) ) + J2*( s(sv5(q)) + s(sv6(q)) ) ) &\n- D*(sf**2 - s(q)**2)\nmf = mi + (sf - s(q)) \n DO r=1,bin_E ! identifying the position of the final energy along the Energy values array\n IF (abs(E_val(r) - Ef) <= 0.001 ) THEN\n r2 = r\n GO TO 100\n END IF\n END DO\n\n DO r=1,bin_E ! defining a position for the final energy along the Energy array, if it already not have been made\n IF (abs(E_val(r) - 123456789) <= 0.001) THEN\n E_val(r) = Ef\n r2 = r\n GO TO 100\n END IF\n END DO\n100 CONTINUE\n\n DO k=1,bin_m ! identifying the position of the final magnetization along the magnetization values array\n IF (abs(m_val(k) - mf) <= 0.001 ) THEN\n k2 = k\n GO TO 200\n END IF\n END DO\n\n DO k=1,bin_m ! defining a position for the final magnetization along the magnetization array, if it already not have been made\n IF (abs(m_val(k) - 123456789) <= 0.001) THEN\n m_val(k) = mf\n k2 = k\n GO TO 200\n END IF\n END DO\n200 CONTINUE rd = xrand(idum) ! analyzing the possibility of changing from initial state to the final state and updating the histogram and density of states\n IF (exp(g(r1,k1) - g(r2,k2)) >= 1) THEN\n g(r2,k2) = g(r2,k2) + log(f)\n h(r2,k2) = h(r2,k2) + 1\n h_acum(r2,k2) = h_acum(r2,k2) + 1\n s(q) = sf\n r1 = r2\n k1 = k2\n ELSE IF (exp(g(r1,k1) - g(r2,k2)) >= rd) THEN\n g(r2,k2) = g(r2,k2) + log(f)\n h(r2,k2) = h(r2,k2) + 1\n h_acum(r2,k2) = h_acum(r2,k2) + 1\n s(q) = sf\n r1 = r2\n k1 = k2\n ELSE ! Keeping in the initial state and updating the histogram and density of states\n g(r1,k1) = g(r1,k1) + log(f)\n h(r1,k1) = h(r1,k1) + 1\n h_acum(r1,k1) = h_acum(r1,k1) + 1\n END IFEND DO ! end of pV loop\n\n!!!!!!!!!!!!!!! flatness test\n h_sum = 0\n pr = 0\n DO r=1,bin_E\n DO k=1,bin_m\n IF (h_acum(r,k)>0) THEN ! considering just visited states, that is, the states with accumulated histogram not zero\n pr = pr + 1\n h_sum = h_sum + h(r,k)\n END IF\n END DO\n END DO\n\n pong = 0 \n DO r=1,bin_E\n DO k=1,bin_m\n IF (h_acum(r,k)>0) THEN\n test = h(r,k)/(h_sum/pr)\n IF (test < flat) THEN\n pong = pong + 1\n END IF\n END IF\n END DO\n END DO\n! if all considered states pass the flatness test, then \"ping\" changes to 1 and we go out of the flatness test, update the modification faction and repeat the process\n IF (pong == 0) THEN \n ping = 1\n END IFEND DO ! final of the flatness loop\n\nEND DO ! final of the modification factor loop\n!!!!!! Normalization of the density of states\n\nln_Ohm_fund = 0\nE_fund = E_max ! starting considering the smallest value of energy as the maximum possible value\nDO r=1,bin_E\nDO k=1,bin_m\n IF ((h_acum(r,k)>0).AND.(E_val(r) < E_fund)) THEN ! updating the smallest value of energy among the values computed\n E_fund = E_val(r)\n ln_Ohm_fund = g(r,k)\n END IF\nEND DO\nEND DO\n\nDO r=1,bin_E\nDO k=1,bin_m\n IF (h_acum(r,k)>0) THEN\n g(r,k) = g(r,k) - ln_Ohm_fund + log(1.0) ! Updating the value of the density of states\n END IF\nEND DO\nEND DO\n\n! creating the output file with the energy and magnetization values and the respective ln[ g(E,m) ]\nWRITE(txt,\"(f4.2,f5.2,f4.2,I3,I3,I3,I0)\") J1, J2, flat, ly, lx, lz, cond\nWRITE(txt, \"(A,f4.2,A,f5.2,A,f4.2,A,I3,A,I3,AI3,A,I0,A)\") 'J1=',J1,'J2=',J2,'_ &\n<h>=',flat,'lx=',lx,'ly=',ly,'lz=',lz,'cond=',cond,'.dat'\nOPEN(2, FILE = trim(txt), STATUS = 'unknown')\n DO r=1,bin_E\n DO k=1,bin_m\n IF (h_acum(r,k)>0) THEN\n WRITE(2, *) E_val(r),';',m_val(k),';',g(r,k)\n END IF\n END DO\n END DOEND PROGRAM\n\n!cccccccccc Random function generator\n\n FUNCTION XRAND(IDUM)\n INTEGER IDUM\n REAL XRAND\n INTEGER, PARAMETER :: IM1=2147413563, IM2=2147413399, IMM1=IM1-1\n INTEGER, PARAMETER :: IA1=40014,IA2=40692,IQ1=53661,IQ2=52774,IR1=12211,IR2=3791,NTAB=32,NDIV=1+IMM1/NTAB\n REAL, PARAMETER :: AM=1./IM1,EPS=1.2E-7,RNMX=1.-EPS\n INTEGER IDUM2,J,K,IV(NTAB),IY\n SAVE IV,IY,IDUM2\n DATA IDUM2/123456719/,IV/NTAB*0/,IY/0/\n IF (IDUM .LE. 0)THEN\n IDUM=MAX(-IDUM,1)\n IDUM2=IDUM\n DO J=NTAB+1,1,-1\n K=IDUM/IQ1\n IDUM=IA1*(IDUM-K*IQ1)-K*IR1\n IF(IDUM .LT. 0)IDUM=IDUM+IM1\n IF(J .LE. NTAB)IV(J)=IDUM\n END DO\n IY=IV(1)\n END IF\n K=IDUM/IQ1\n IDUM=IA1*(IDUM-K*IQ1)-K*IR1\n IF(IDUM .LT. 0)IDUM=IDUM+IM1\n K=IDUM2/IQ2\n IDUM2=IA2*(IDUM2-K*IQ2)-K*IR2\n IF(IDUM2 .LT. 0)IDUM2=IDUM2+IM2\n J= 1 + IY/NDIV\n IY=IV(J)-IDUM2\n IV(J)=IDUM\n IF(IY .LT. 1)IY=IY+IMM1 XRAND=MIN(AM*IY,RNMX)\n RETURN\n END" }, "publisher": { "@type": "Organization", "name": "Physics Forums: Science Discussion, Homework Help, Articles", "alternateName": "Physics Forums", "description": "Join Physics Forums, where students, scientists, and enthusiasts come together to explore and discuss the current understanding and practice of various scientific fields.", "url": "https://www.physicsforums.com", "logo": "https://www.physicsforums.com/styles/physicsforums/images/physics-forums-logo-og.png" } } </script> <script type="text/javascript" src="https://www.physicsforums.com/copyright.js" defer></script> <script> function parseNewPost(postid) { var newpost = document.getElementById("js-post-" + postid), npa = [newpost]; MathJax.typeset(npa); } function parsePreview() { var preview = document.getElementsByClassName("xfPreview"); MathJax.typeset(preview); } function parseNewConversationPost(postid) { var newpost = document.getElementsByClassName("convMessage-" + postid); MathJax.typeset(newpost); } function parseNewProfilePost(postid) { var newpost = document.getElementById("js-profilePost-" + postid), npa = [newpost]; MathJax.typeset(npa); } function parseTooltip() { MathJax.typeset(); } </script> </body> </html>