@@ -41,8 +41,8 @@ def main():
4141 ns .uinitial = 0.5
4242
4343 if is_coupled_case :
44- participant = precice .Participant ("macro-heat " , "../precice-config.xml" , 0 , 1 )
45- mesh_name = "macro-mesh "
44+ participant = precice .Participant ("Macro " , "../precice-config.xml" , 0 , 1 )
45+ mesh_name = "Macro-Mesh "
4646
4747 # Define Gauss points on entire domain as coupling mesh (volume coupling from macro side)
4848 couplingsample = topo .sample ('gauss' , degree = 2 ) # mesh vertices are Gauss points
@@ -68,7 +68,7 @@ def main():
6868 if is_coupled_case :
6969 if participant .requires_initial_data ():
7070 concentrations = couplingsample .eval ('u' @ ns , solu = solu0 )
71- participant .write_data (mesh_name , "concentration " , vertex_ids , concentrations )
71+ participant .write_data (mesh_name , "Concentration " , vertex_ids , concentrations )
7272
7373 participant .initialize ()
7474 dt = solver_dt = participant .get_max_time_step_size ()
@@ -107,16 +107,16 @@ def main():
107107 dt = min (precice_dt , solver_dt )
108108
109109 # Read porosity and apply it to the existing solution
110- poro_data = participant .read_data (mesh_name , "porosity " , vertex_ids , dt )
110+ poro_data = participant .read_data (mesh_name , "Porosity " , vertex_ids , dt )
111111 poro_coupledata = couplingsample .asfunction (poro_data )
112112 sqrphi = couplingsample .integral ((ns .phi - poro_coupledata ) ** 2 )
113113 solphi = solver .optimize ('solphi' , sqrphi , droptol = 1E-12 )
114114
115115 # Read conductivity and apply it to the existing solution
116- k_00_c = couplingsample .asfunction (participant .read_data (mesh_name , "k_00 " , vertex_ids , dt ))
117- k_01_c = couplingsample .asfunction (participant .read_data (mesh_name , "k_01 " , vertex_ids , dt ))
118- k_10_c = couplingsample .asfunction (participant .read_data (mesh_name , "k_10 " , vertex_ids , dt ))
119- k_11_c = couplingsample .asfunction (participant .read_data (mesh_name , "k_11 " , vertex_ids , dt ))
116+ k_00_c = couplingsample .asfunction (participant .read_data (mesh_name , "K00 " , vertex_ids , dt ))
117+ k_01_c = couplingsample .asfunction (participant .read_data (mesh_name , "K01 " , vertex_ids , dt ))
118+ k_10_c = couplingsample .asfunction (participant .read_data (mesh_name , "K10 " , vertex_ids , dt ))
119+ k_11_c = couplingsample .asfunction (participant .read_data (mesh_name , "K11 " , vertex_ids , dt ))
120120
121121 conductivity = function .asarray ([[k_00_c , k_01_c ], [k_10_c , k_11_c ]])
122122 sqrk = couplingsample .integral (((ns .k - conductivity ) * (ns .k - conductivity )).sum ([0 , 1 ]))
@@ -128,7 +128,7 @@ def main():
128128 if is_coupled_case :
129129 # Collect values of field u and write them to preCICE
130130 concentration = couplingsample .eval ('u' @ ns , solu = solu )
131- participant .write_data (mesh_name , "concentration " , vertex_ids , concentration )
131+ participant .write_data (mesh_name , "Concentration " , vertex_ids , concentration )
132132
133133 participant .advance (dt )
134134
0 commit comments