1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="sim__profiles_8h" kind="file"> |
---|
4 | <compoundname>sim_profiles.h</compoundname> |
---|
5 | <includedby refid="pmsm__mix_8cpp" local="yes">work/git/mixpp/pmsm/pmsm_mix.cpp</includedby> |
---|
6 | <includedby refid="pmsm__sim2_8cpp" local="yes">work/git/mixpp/pmsm/pmsm_sim2.cpp</includedby> |
---|
7 | <includedby refid="sim__var_8cpp" local="yes">work/git/mixpp/pmsm/sim_var.cpp</includedby> |
---|
8 | <invincdepgraph> |
---|
9 | <node id="652"> |
---|
10 | <label>work/git/mixpp/pmsm/sim_profiles.h</label> |
---|
11 | <link refid="sim_profiles.h"/> |
---|
12 | <childnode refid="653" relation="include"> |
---|
13 | </childnode> |
---|
14 | <childnode refid="654" relation="include"> |
---|
15 | </childnode> |
---|
16 | </node> |
---|
17 | <node id="654"> |
---|
18 | <label>work/git/mixpp/pmsm/sim_var.cpp</label> |
---|
19 | <link refid="sim__var_8cpp"/> |
---|
20 | </node> |
---|
21 | <node id="653"> |
---|
22 | <label>work/git/mixpp/pmsm/pmsm_mix.cpp</label> |
---|
23 | <link refid="pmsm__mix_8cpp"/> |
---|
24 | </node> |
---|
25 | </invincdepgraph> |
---|
26 | <sectiondef kind="func"> |
---|
27 | <memberdef kind="function" id="sim__profiles_8h_1257a0141392d735ab1e6816ce2265f23" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
28 | <type>void</type> |
---|
29 | <definition>void sim_profile_steps1</definition> |
---|
30 | <argsstring>(double &Ww, bool load=false)</argsstring> |
---|
31 | <name>sim_profile_steps1</name> |
---|
32 | <param> |
---|
33 | <type>double &</type> |
---|
34 | <declname>Ww</declname> |
---|
35 | </param> |
---|
36 | <param> |
---|
37 | <type>bool</type> |
---|
38 | <declname>load</declname> |
---|
39 | <defval>false</defval> |
---|
40 | </param> |
---|
41 | <briefdescription> |
---|
42 | </briefdescription> |
---|
43 | <detaileddescription> |
---|
44 | </detaileddescription> |
---|
45 | <inbodydescription> |
---|
46 | </inbodydescription> |
---|
47 | <location file="/home/smidl/work/git/mixpp/pmsm/sim_profiles.h" line="13" bodyfile="/home/smidl/work/git/mixpp/pmsm/sim_profiles.h" bodystart="13" bodyend="64"/> |
---|
48 | </memberdef> |
---|
49 | </sectiondef> |
---|
50 | <briefdescription> |
---|
51 | </briefdescription> |
---|
52 | <detaileddescription> |
---|
53 | </detaileddescription> |
---|
54 | <programlisting> |
---|
55 | <codeline lineno="1"><highlight class="comment">/*</highlight></codeline> |
---|
56 | <codeline lineno="2"><highlight class="comment"><sp/><sp/>\file</highlight></codeline> |
---|
57 | <codeline lineno="3"><highlight class="comment"><sp/><sp/>\brief<sp/>Common<sp/>simulation<sp/>profiles<sp/>for<sp/>PMSM<sp/>experiments</highlight></codeline> |
---|
58 | <codeline lineno="4"><highlight class="comment"><sp/><sp/>\author<sp/>Vaclav<sp/>Smidl.</highlight></codeline> |
---|
59 | <codeline lineno="5"><highlight class="comment"></highlight></codeline> |
---|
60 | <codeline lineno="6"><highlight class="comment"><sp/><sp/>-----------------------------------</highlight></codeline> |
---|
61 | <codeline lineno="7"><highlight class="comment"><sp/><sp/>BDM++<sp/>-<sp/>C++<sp/>library<sp/>for<sp/>Bayesian<sp/>Decision<sp/>Making<sp/>under<sp/>Uncertainty</highlight></codeline> |
---|
62 | <codeline lineno="8"><highlight class="comment"></highlight></codeline> |
---|
63 | <codeline lineno="9"><highlight class="comment"><sp/><sp/>Using<sp/>IT++<sp/>for<sp/>numerical<sp/>operations</highlight></codeline> |
---|
64 | <codeline lineno="10"><highlight class="comment"><sp/><sp/>-----------------------------------</highlight></codeline> |
---|
65 | <codeline lineno="11"><highlight class="comment">*/</highlight><highlight class="normal"></highlight></codeline> |
---|
66 | <codeline lineno="12"><highlight class="normal"></highlight></codeline> |
---|
67 | <codeline lineno="13"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>sim_profile_steps1(</highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>&Ww,</highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>load=</highlight><highlight class="keyword">false</highlight><highlight class="normal">)<sp/>{</highlight></codeline> |
---|
68 | <codeline lineno="14"><highlight class="normal"></highlight></codeline> |
---|
69 | <codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>0.2)<sp/>x[8]=1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A<sp/>//0.2ZP</highlight><highlight class="normal"></highlight></codeline> |
---|
70 | <codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>0.4)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
71 | <codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>0.6)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
72 | <codeline lineno="18"><highlight class="normal"></highlight></codeline> |
---|
73 | <codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>0.7)<sp/>Ww=2.*M_PI*10.;</highlight></codeline> |
---|
74 | <codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>1.0)<sp/>x[8]=1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
75 | <codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>1.2)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
76 | <codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>1.4)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
77 | <codeline lineno="23"><highlight class="normal"></highlight></codeline> |
---|
78 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>1.6)<sp/>Ww=2.*M_PI*50.;</highlight></codeline> |
---|
79 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>1.9)<sp/>x[8]=1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
80 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>2.1)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
81 | <codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>2.3)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
82 | <codeline lineno="28"><highlight class="normal"></highlight></codeline> |
---|
83 | <codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>2.5)<sp/>Ww=2.*M_PI*100;</highlight></codeline> |
---|
84 | <codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>2.8)<sp/>x[8]=1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
85 | <codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>3.0)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
86 | <codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>3.2)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
87 | <codeline lineno="33"><highlight class="normal"></highlight></codeline> |
---|
88 | <codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>3.4)<sp/>Ww=2.*M_PI*150;</highlight></codeline> |
---|
89 | <codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>3.7)<sp/>x[8]=1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
90 | <codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>3.9)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
91 | <codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>4.1)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
92 | <codeline lineno="38"><highlight class="normal"></highlight></codeline> |
---|
93 | <codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>4.3)<sp/>Ww=2.*M_PI*0;</highlight></codeline> |
---|
94 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>4.8)<sp/>x[8]=-1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
95 | <codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>5.0)<sp/>x[8]=-10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
96 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>5.2)<sp/>x[8]=-25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
97 | <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
---|
98 | <codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>5.4)<sp/>Ww=2.*M_PI*(-10.);</highlight></codeline> |
---|
99 | <codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>5.7)<sp/>x[8]=-1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
100 | <codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>5.9)<sp/>x[8]=-10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
101 | <codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>6.1)<sp/>x[8]=-25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
102 | <codeline lineno="48"><highlight class="normal"></highlight></codeline> |
---|
103 | <codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>6.3)<sp/>Ww=2.*M_PI*(-50.);</highlight></codeline> |
---|
104 | <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>6.7)<sp/>x[8]=-1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
105 | <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>6.9)<sp/>x[8]=-10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
106 | <codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>7.1)<sp/>x[8]=-25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
107 | <codeline lineno="53"><highlight class="normal"></highlight></codeline> |
---|
108 | <codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>7.3)<sp/>Ww=2.*M_PI*(-100.);</highlight></codeline> |
---|
109 | <codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>7.7)<sp/>x[8]=-1.2;<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>1A</highlight><highlight class="normal"></highlight></codeline> |
---|
110 | <codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>7.9)<sp/>x[8]=-10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
111 | <codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>8.1)<sp/>x[8]=-25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
112 | <codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>8.3)<sp/>x[8]=10.8;<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>9A</highlight><highlight class="normal"></highlight></codeline> |
---|
113 | <codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>8.5)<sp/>x[8]=25.2;<sp/><sp/></highlight><highlight class="comment">//<sp/>21A</highlight><highlight class="normal"></highlight></codeline> |
---|
114 | <codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
115 | <codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(t>9)<sp/>Ww=2.*M_PI*0;</highlight></codeline> |
---|
116 | <codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//remove<sp/>load<sp/>if<sp/>load=false</highlight><highlight class="normal"></highlight></codeline> |
---|
117 | <codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!load)<sp/>x[8]=0.0;</highlight></codeline> |
---|
118 | <codeline lineno="64"><highlight class="normal">}</highlight></codeline> |
---|
119 | </programlisting> |
---|
120 | <location file="/home/smidl/work/git/mixpp/pmsm/sim_profiles.h"/> |
---|
121 | </compounddef> |
---|
122 | </doxygen> |
---|