Skip to content

Commit

Permalink
add graph_t_e to template_example, add heading to virtual datasheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gituser789 committed Apr 29, 2024
1 parent 999638e commit 95009a5
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 11 deletions.
58 changes: 58 additions & 0 deletions template_example/switch_switching_eoff_2.5Ohm_800V_75A_-4V.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
25,69845963719822; 0,000571039415340121
28,320165953127074; 0,0005703913933073719
30,941872269055928; 0,0005716874373728701
33,56357858498478; 0,0005739555144874922
36,18528490091363; 0,0005739555144874922
38,80699121684248; 0,0005739555144874922
41,42869753277133; 0,0005742795255038666
44,05040384870019; 0,0005807597458313577
46,67211016462904; 0,0005810837568477325
49,2938164805579; 0,0005827038119296051
51,91552279648675; 0,0005810837568477325
54,537229112415595; 0,0005839998559951033
57,158935428344456; 0,0005882119992079724
59,780641744273304; 0,0005882119992079724
62,40234806020215; 0,0005882119992079724
65,024054376131; 0,0005882119992079724
67,64576069205987; 0,0005933961754699658
70,26746700798873; 0,0005953402415682127
72,88917332391756; 0,0005953402415682127
75,51087963984642; 0,0005940441975027144
78,13258595577528; 0,0005953402415682127
80,75429227170412; 0,0005982563407155839
83,37599858763298; 0,000598904362748333
85,99770490356184; 0,000598904362748333
88,61941121949067; 0,000598904362748333
91,24111753541953; 0,000598904362748333
93,8628238513484; 0,0006037645279939512
96,48453016727723; 0,0006060326051085733
99,16582071765905; 0,0006022139038441587
101,72794279913495; 0,0006060326051085733
104,34964911506381; 0,0006060326051085733
106,97135543099265; 0,0006063566161249477
109,5930617469215; 0,0006095967262886933
112,21476806285037; 0,0006095967262886933
114,8364743787792; 0,0006095967262886933
117,45818069470806; 0,0006095967262886933
120,07988701063692; 0,0006095967262886933
122,70159332656578; 0,0006121888144196897
125,32329964249462; 0,0006121888144196897
127,94500595842348; 0,0006167249686489336
130,56671227435234; 0,0006167249686489336
133,18841859028117; 0,0006167249686489336
135,81012490621004; 0,0006167249686489336
138,4318312221389; 0,0006173729906816827
141,05353753806773; 0,0006238532110091738
143,6752438539966; 0,0006238532110091738
146,29695016992545; 0,0006238532110091738
148,91865648585429; 0,0006227011718398425
151,54036280178315; 0,0006238532110091738
154,162069117712; 0,0006238532110091738
156,78377543364084; 0,0006254732660910469
159,4054817495697; 0,0006309814533694141
162,02718806549856; 0,0006309814533694141
164,64889438142743; 0,0006309814533694141
167,27060069735626; 0,0006309814533694141
169,89230701328512; 0,0006309814533694141
172,51401332921398; 0,0006309814533694141
174,42070883170769; 0,0006308032473104084
58 changes: 58 additions & 0 deletions template_example/switch_switching_eon_2.5Ohm_800V_75A_15V.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
24,50677494813965; 0,0015035431204660954
27,128481264068505; 0,0015281679577105619
29,75018757999736; 0,0015466365856439115
32,37189389592621; 0,0015654292245936355
34,99360021185506; 0,001581305764395989
37,615306527783915; 0,001600098403345713
40,23701284371277; 0,00161694697619719
42,858719159641616; 0,0016347675820977906
45,48042547557048; 0,0016519401659656424
48,102131791499325; 0,001668788738817119
50,55883561202007; 0,0016786579205231435
53,34554442335703; 0,0017031339065528223
55,96725073928588; 0,0017190104463551755
58,58895705521474; 0,0017361830302230273
61,21066337114359; 0,0017523835810417548
63,832369687072436; 0,001768908142876857
66,45407600300129; 0,0017847846826792107
69,07578231893015; 0,0018006612224815638
71,69748863485898; 0,0018175097953330409
74,35891777375647; 0,0018273381294964023
76,94090126671671; 0,0018499108969704963
79,56260758264557; 0,0018654634257564751
82,1843138985744; 0,0018797199104769557
84,80602021450326; 0,0018939763951974363
87,42772653043212; 0,001911472990081662
90,04943284636096; 0,001925081452769394
92,67113916228982; 0,0019406339815553723
95,29284547821868; 0,0019580981753379613
97,91455179414751; 0,001976631605474585
100,40792283587007; 0,0019845250123119566
103,15796442600524; 0,0019999279975519164
105,7796707419341; 0,0020112683831250257
108,40137705786293; 0,00202610808767498
111,02308337379179; 0,0020420494296806086
113,64478968972065; 0,0020572779474502126
116,26649600564949; 0,0020705623991215697
118,88820232157835; 0,0020854669058747994
121,50990863750721; 0,002098103335513407
124,13161495343604; 0,0021117117982011385
126,7533212693649; 0,0021262922939379934
129,37502758529376; 0,0021379566905274775
131,99673390122263; 0,002152213175247958
134,61844021715146; 0,002165497626919315
137,24014653308032; 0,0021774860345251733
139,86185284900918; 0,0021910944972129047
142,48355916493801; 0,0022030829048187636
145,10526548086688; 0,002216043345473746
147,72697179679574; 0,0022293277971451027
150,34867811272457; 0,002240668182718212
152,97038442865343; 0,0022539526343895687
155,5920907445823; 0,0022665890640281763
158,21379706051113; 0,0022776054385849117
160,83550337644; 0,00228959384619077
163,45720969236885; 0,0023022302758293777
166,07891600829768; 0,0023125986283533636
168,70062232422654; 0,002324911046975597
171,3223286401554; 0,002336251432548706
173,82486648717838; 0,002350669922777374
27 changes: 21 additions & 6 deletions template_example/template_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ def template_example(database):
'r_g': 2.5,
"graph_i_e": tdb.csv2array('switch_switching_eoff_2.5Ohm_800V_25deg_-4V.csv')} # insert csv here

e_off_75A_800V = {"dataset_type": "graph_t_e",
'v_g': -4,
'v_supply': 800,
'r_g': 2.5,
'i_x': 75,
"graph_t_e": tdb.csv2array('switch_switching_eoff_2.5Ohm_800V_75A_-4V.csv')} # insert csv here

e_on_75A_800V = {"dataset_type": "graph_t_e",
'v_g': 15,
'v_supply': 800,
'r_g': 2.5,
'i_x': 75,
"graph_t_e": tdb.csv2array('switch_switching_eon_2.5Ohm_800V_75A_15V.csv')} # insert csv here


switch_gate_charge_curve_800 = {
'i_channel': 20,
't_j': 25,
Expand Down Expand Up @@ -163,8 +178,8 @@ def template_example(database):
't_j_max': 175,
'channel': [channel_m40_7, channel_m40_9, channel_m4_11, channel_m40_13, channel_m40_15, channel_25_15, channel_25_13, channel_25_11,
channel_25_9, channel_25_7, channel_175_15, channel_175_13, channel_175_11, channel_175_9, channel_175_7],
'e_on': [e_on_25_600, e_on_25_800],
'e_off': [e_off_25_600, e_off_25_800],
'e_on': [e_on_25_600, e_on_25_800, e_on_75A_800V],
'e_off': [e_off_25_600, e_off_25_800, e_off_75A_800V],
'charge_curve': [switch_gate_charge_curve_800],
'r_channel_th': [switch_ron_args_11, switch_ron_args_13, switch_ron_args_15],
'thermal_foster': switch_foster_args,
Expand Down Expand Up @@ -264,10 +279,10 @@ def template_example(database):

# Linux users: export datasheet as html
# look for CREE_C3M0016120K.html in template_example folder.
# html_str = transistor.export_datasheet(build_collection=True)
# Html_file = open(f"{transistor.name}.html", "w")
# Html_file.write(html_str)
# Html_file.close()
html_str = transistor.export_datasheet(build_collection=True)
Html_file = open(f"{transistor.name}.html", "w")
Html_file.write(html_str)
Html_file.close()

# Export to MATLAB
# transistor.export_matlab()
Expand Down
4 changes: 2 additions & 2 deletions transistordatabase/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@ def plot_energy_data_t(self, buffer_req: bool = False):
else:
print("Switch energy t_e curves are not available for the chosen transistor")
return None


def plot_all_on_resistance_curves(self, buffer_req: bool = False):
"""
Expand Down Expand Up @@ -753,7 +752,8 @@ def collect_data(self) -> Dict:
"""
switch_data = {}
switch_data['plots'] = {'channel_plots': self.plot_all_channel_data(True),
'energy_plots': self.plot_energy_data(True), 'energy_plots_r': self.plot_energy_data_r(True), 'energy_plots_t': self.plot_energy_data_t(True),
'energy_plots': self.plot_energy_data(True), 'energy_plots_r': self.plot_energy_data_r(True),
'energy_plots_t': self.plot_energy_data_t(True),
'r_channel_th_plot': self.plot_all_on_resistance_curves(True), 'charge_curve': self.plot_all_charge_curves(True),
'soa': self.plot_soa(True)}
for attr in dir(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
{% set trans_plots = {} %}
{% set raw_measurement_plot = {} %}

{% set trans_title = {'c_plots': 'Voltage dependant Capacitance'} %}
{% set switch_title = {'channel_plots': 'Channel Characteristics', 'energy_plots': 'Current vs Energy curves', 'energy_plots_r': 'Rg vs Energy curves', 'r_channel_th_plot':'On Resistance plots', 'charge_curve':'Gate charge,Qg','imp_plot':'Impedance plot', 'soa':'Safe operating Area'} %}
{% set diode_title = {'channel_plots': 'Channel Characteristics', 'energy_plots': 'Current vs Energy curves', 'energy_plots_r': 'Rg vs Energy curves', 'imp_plot':'Impedance plot', 'soa':'Safe operating Area' } %}
{% set trans_title = {'c_plots': 'Voltage dependent Capacitance'} %}
{% set switch_title = {'channel_plots': 'Channel Characteristics', 'energy_plots': 'Current vs. Energy', 'energy_plots_r': 'Rg vs. Energy', 'energy_plots_t': 'Tj vs. Energy', 'r_channel_th_plot':'On Resistance', 'charge_curve':'Gate charge,Qg','imp_plot':'Thermal step response', 'soa':'Safe operating Area'} %}
{% set diode_title = {'channel_plots': 'Channel Characteristics', 'energy_plots': 'Current vs. Energy', 'energy_plots_r': 'Rg vs. Energy', 'energy_plots_t': 'Tj vs. Energy', 'imp_plot':'Thermal step response', 'soa':'Safe operating Area' } %}

<!--******* diode ********* -->
{% for key, value in diode['plots'].items() %}
Expand Down

0 comments on commit 95009a5

Please sign in to comment.