CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Electromagnetics

Interface Condition Coding Method

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2022, 03:10
Thumbs down Interface Condition Coding Method
  #1
New Member
 
Ji-Hoon Han
Join Date: Dec 2022
Posts: 1
Rep Power: 0
app1870 is on a distinguished road
I am solving a magnetostatic problem using PINN.

I have succeeded in solving a simple Poisson equation. However, in the analysis considering the geometry, a problem was found in which the interface condition loss did not converge.


I know that the tangential component of the magnetic field strength between two media is continuous.


Accordingly, the normal and tangent vectors were calculated in advance and multiplied according to the interface position.

Is it correct to set the interface condition like this?

Or, if you have an example considering interface conditions, please share.

def physics_net_for_ic(self, xt,in_mu,nom,out_mu):
x = xt[:, 0:1]
t = xt[:, 1:2]
with tf.GradientTape(persistent=True) as tape:
tape.watch(t)
tape.watch(x)
xt_t = tf.concat([x,t], axis=1)
out_u = self.ironmaxwell(xt_t)
out_u_x = tape.gradient(out_u, x)
out_u_y = tape.gradient(out_u, t)
in_u = self.coilmaxwell(xt_t)
in_u_x = tape.gradient(in_u, x)
in_u_y = tape.gradient(in_u, t)
del tape

out_b_x = out_u_y
out_b_y = out_u_x

out_h_x = out_b_x/out_mu
out_h_y = out_b_y/out_mu

in_b_x = in_u_y
in_b_y = in_u_x

in_h_x = in_b_x/in_mu
in_h_y = in_b_y/in_mu


loss_b = tf.add(tf.multiply((in_b_x-out_b_x),nom),tf.multiply((in_b_y-out_b_y),(1-nom)))

loss_h = tf.add(tf.multiply((in_h_x-out_h_x),(1-nom)),tf.multiply((in_h_y-out_h_y),nom))
app1870 is offline   Reply With Quote

Reply

Tags
electomagnetics, interface bc, pinn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Level Set Method and Immersed Interface Method mykkujinu2201 Main CFD Forum 2 August 5, 2017 13:31
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 17:47.