[TEST]UPSTREAM: Pick some source changes from 48080d0a97

* Sync new folder structure
This commit is contained in:
2026-04-23 20:55:40 +08:00
parent c185f99ee3
commit 17109fde9b
211 changed files with 189504 additions and 189280 deletions

View File

@@ -155,30 +155,43 @@ elif (input_data.puncture_data_set == "Manually" ):
## Write the above binary data into the AMSS-NCKU TwoPuncture input file
def generate_AMSSNCKU_TwoPuncture_input():
def generate_AMSSNCKU_TwoPuncture_input(puncture_data=None):
file1 = open( os.path.join(input_data.File_directory, "AMSS-NCKU-TwoPuncture.input"), "w")
if puncture_data is None:
distance_value = distance
momentum_value = momentum_BH
angular_momentum_value = angular_momentum_BH
BBH_M1_value = BBH_M1
BBH_M2_value = BBH_M2
else:
distance_value = puncture_data.distance_d0
momentum_value = puncture_data.momentum_BH
angular_momentum_value = puncture_data.angular_momentum_BH
BBH_M1_value = puncture_data.BBH_M1
BBH_M2_value = puncture_data.BBH_M2
print( "# -----0-----> y", file=file1 )
print( "# - + use Brugmann's convention", file=file1 )
print( "ABE::mp = -1.0", file=file1 ) ## use negative values so the code solves for bare masses automatically
print( "ABE::mm = -1.0", file=file1 )
print( "# b = D/2", file=file1 )
print( "ABE::b = ", ( distance / 2.0 ), file=file1 )
print( "ABE::P_plusx = ", momentum_BH[0,0], file=file1 )
print( "ABE::P_plusy = ", momentum_BH[0,1], file=file1 )
print( "ABE::P_plusz = ", momentum_BH[0,2], file=file1 )
print( "ABE::P_minusx = ", momentum_BH[1,0], file=file1 )
print( "ABE::P_minusy = ", momentum_BH[1,1], file=file1 )
print( "ABE::P_minusz = ", momentum_BH[1,2], file=file1 )
print( "ABE::S_plusx = ", angular_momentum_BH[0,0], file=file1 )
print( "ABE::S_plusy = ", angular_momentum_BH[0,1], file=file1 )
print( "ABE::S_plusz = ", angular_momentum_BH[0,2], file=file1 )
print( "ABE::S_minusx = ", angular_momentum_BH[1,0], file=file1 )
print( "ABE::S_minusy = ", angular_momentum_BH[1,1], file=file1 )
print( "ABE::S_minusz = ", angular_momentum_BH[1,2], file=file1 )
print( "ABE::Mp = ", BBH_M1, file=file1 )
print( "ABE::Mm = ", BBH_M2, file=file1 )
print( "ABE::b = ", ( distance_value / 2.0 ), file=file1 )
print( "ABE::P_plusx = ", momentum_value[0,0], file=file1 )
print( "ABE::P_plusy = ", momentum_value[0,1], file=file1 )
print( "ABE::P_plusz = ", momentum_value[0,2], file=file1 )
print( "ABE::P_minusx = ", momentum_value[1,0], file=file1 )
print( "ABE::P_minusy = ", momentum_value[1,1], file=file1 )
print( "ABE::P_minusz = ", momentum_value[1,2], file=file1 )
print( "ABE::S_plusx = ", angular_momentum_value[0,0], file=file1 )
print( "ABE::S_plusy = ", angular_momentum_value[0,1], file=file1 )
print( "ABE::S_plusz = ", angular_momentum_value[0,2], file=file1 )
print( "ABE::S_minusx = ", angular_momentum_value[1,0], file=file1 )
print( "ABE::S_minusy = ", angular_momentum_value[1,1], file=file1 )
print( "ABE::S_minusz = ", angular_momentum_value[1,2], file=file1 )
print( "ABE::Mp = ", BBH_M1_value, file=file1 )
print( "ABE::Mm = ", BBH_M2_value, file=file1 )
print( "ABE::admtol = 1.e-8", file=file1 )
print( "ABE::Newtontol = 5.e-12", file=file1 )
print( "ABE::nA = 50", file=file1 )