################################################################################ # FICHE DE MODELE SABER : ED:1 REV:0 # AUTEUR:OCSIMIZE DATE:13/02/01 # # FICHIER l_oc.sin : ind. b du 22/01/06 # ETAT : valide ################################################################################ #==============================================================================# element template l_oc p m = l,imax,n,ur,len,area,r,ic,rth_hs,temp_int,nc #==============================================================================# ################################################################################ # Copyright 2001 to infinity and beyond..., Ocsimize. # This template may not be reproduced or modified # without permission from Ocsimize. Ocsimize does not assume # liability for the use of this template or the results # obtained from using it as long as it is not validated by the final user. # Usage of this template is allowed for customers of Ocsimize's customers ################################################################################ ################################################################################ # MODIFICATION # # 13/02/01: creation # # 22/01/06: ind b # # coefficient for saturation (nc) added # proper temperature (temp_int) added ################################################################################ # # pins # ################################################################################ # Name Type Signification # # p electrical voltage input # m electrical voltage output # ################################################################################ # # Parameters definition # ################################################################################ # Name Default value Signification # # l undef (H) inductance that superset following 4 parameters : # n undef (-) number of winding turns # len undef (m) magnetic path length # area undef (m**2) magnetic path cross section # ur 1 (-) relative permeability # # rth_hs 0 (degC/W) thermal resistance - heatsink # imax 5 (A) current where inductance begins to saturate # nc 0.33 (-) coefficent of saturating function # temp_int undef (degC) environnement temperature of the device # ################################################################################ # # Postprocess information # ################################################################################ # Name Unit Signification # # pwrd Watt power dissipated in the device # power Watt power in the device # tempj degC temperature of the device # ################################################################################ # # usage # ################################################################################ # # This template simulate an inductance with saturation # when i > imax a coefficient modulate the inductance # # # o (p) # | # -- # | | # | | # | | # -- # | # o (m) # ################################################################################ # Notes : ################################################################################ # # # ################################################################################ #---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8 electrical p, m export val p pwrd export val p power export val tc tempj number l=undef, n = undef, len = undef, area = undef, ur = 1 number imax=5 number r = 0, rth_hs = 0, ic = undef number temp_int = undef number nc = 0.33 external number temp { val nu coef val l lequiv val f f val v vr, vl, vt val joule energy var i i struc {number bp,inc;} i_ns[*] m) += i i: vt = d_by_dt(f) + vr } }