<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many thanks for your reply, Adam.</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I noticed that I did not use the 'nocurrent' boundary condition in my previous Z-pinch simulations; however, I still did not get zero magnetic pressure. I'm not sure if I made a mistake back then or if this is due to changes in the newer version of the FLASH
 code.</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have encountered negative internal energy during the 3T update error while running a test case for a 2D Z-pinch simulation. I would appreciate any suggestions or feedback that could help. I have attached the ZPinch_2D<code>.log</code> and
<code>flash.par</code> files for reference. Many thanks!</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Adam F Kowalski <Adam.F.Kowalski@Colorado.EDU><br>
<b>Sent:</b> Friday, May 23, 2025 1:23 PM<br>
<b>To:</b> Paria Makaremi-Esfarjani <paria.makaremiesfarjani@mail.mcgill.ca>; flash-users <flash-users@flash.rochester.edu><br>
<b>Subject:</b> Re: ZPinch test case--Zero magnetic energy</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Hi Paria,</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
I found the same thing:  the default xr_boundary_type = "nocurrent" whereas if you change it to xr_boundary_type = "circuit" you'll get large values of Bz = B_phi as expected (though Eddie might want to confirm this is the only change that needs to be done
 to the default flash.par to reproduce his simulation).</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Adam</div>
<div id="x_appendonsend" style="color:inherit"></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<div dir="ltr" id="x_divRplyFwdMsg" style="color:inherit"><span style="font-family:Calibri,sans-serif; font-size:11pt; color:rgb(0,0,0)"><b>From:</b> flash-users <flash-users-bounces@flash.rochester.edu> on behalf of Paria Makaremi-Esfarjani <paria.makaremiesfarjani@mail.mcgill.ca><br>
<b>Sent:</b> Friday, May 23, 2025 10:38 AM<br>
<b>To:</b> flash-users <flash-users@flash.rochester.edu><br>
<b>Subject:</b> [FLASH-USERS] ZPinch test case--Zero magnetic energy</span>
<div> </div>
</div>
<div style="direction:ltr">[External email - use caution]</div>
<div style="direction:ltr"><br>
</div>
<div style="direction:ltr">Hello,</div>
<div style="direction:ltr"><br>
</div>
<div style="direction:ltr; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am trying to run the ZPinch test case simulation with the FLASH code on a new device. I followed exactly the same steps mentioned in the manual to test the 1D case for the ZPinch; however, I keep getting zero magnetic energy, which is not correct. Could anyone
 please help me understand what I might be doing wrong? When I run the same test with the older version of FLASH on my other device, I get non-zero values for the magnetic energy solution. I have attached flash.par, ZPinch_1D.dat, and ZPinch_1D.log files.<br>
Thank you for your help.</div>
<div style="direction:ltr"><br>
</div>
<div style="direction:ltr"><br>
</div>
<div style="direction:ltr; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="direction:ltr; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Paria</div>
</div>
</body>
</html>