Skip to main content
. Author manuscript; available in PMC: 2023 Jun 28.
Published in final edited form as: Comput Methods Appl Mech Eng. 2022 May 10;402:115027. doi: 10.1016/j.cma.2022.115027
Algorithm 1 Coupling Method. Γ1ΩI, Γ2ΩII. If non-overlapping, Γ1=Γ2, else Γ1Γ2.
Initialization: Set model I with u(x1)=0 and model II with u(x1)=0
Main Loop:
for n=0:nmax1 do
  Model I (FEM):
  • Receive the interface information hn(x1) from Model II (x1Γ1).
  • Solve for uIn+1 from Model I.
  • Calculate uIn+1(x2) or uIn+1x|x2 and pass it to Model II (x2Γ2).
  Model II (NN):
  • Receive the interface information uIn+1(x2) or uIn+1x|x2 from Model I (x2Γ2).
  • Solve for uIIn+1/TIIn+1 from Model II.
  • Calculate hIIn+1(x1)=R1uIIn+1(x1)+R2TIIn+1(x1).
  • Calculate h˜n+1(x1)=(1θ)hIIn+1(x1)+θhIn+1(x1) and pass it to Model I (x1Γ1).
  If converged, stop;
end for