<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 287: Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/</link><description>Recent changes to 287: Advanced Kinetics Specification using Python Script</description><atom:link href="https://sourceforge.net/p/dwsim/tickets/287/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 03 Mar 2021 17:24:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dwsim/tickets/287/feed.rss" rel="self" type="application/rss+xml"/><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#e00c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;O Script "CSTR" está sem ativar, o unico que está envolvido nas cinéticas das reações é o "1 Glycine"&lt;br/&gt;
Acho que descobri o erro. Uma olhada na página &lt;a href="https://dwsim.inforside.com.br/api_help60/html/T_DWSIM_UnitOperations_Reactors_Reactor_CSTR.htm" rel="nofollow"&gt;https://dwsim.inforside.com.br/api_help60/html/T_DWSIM_UnitOperations_Reactors_Reactor_CSTR.htm&lt;/a&gt; me revela que o comando é FlowSheet, e não Flowsheet (capital L). Uma troca de&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;Flowsheet = reactor.Flowsheet&lt;/span&gt;
&lt;span class="err"&gt;obj = Flowsheet.GetFlowsheetSimulationObject('5')&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;para&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;FlowSheet = reactor.FlowSheet&lt;/span&gt;
&lt;span class="err"&gt;obj = FlowSheet.GetFlowsheetSimulationObject('5')&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;retira o erro. na verdade, onde há "Flowsheet" no código eu troquei para "FlowSheet" e deu certo. Obrigado!&lt;br/&gt;
Thanks!&lt;br/&gt;
For english speakers: something about Flowsheet reference being broken, and having to redirect using the command "reactor.FlowSheet" so DWSIM knows what Flowsheet is being used in question&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leandro Favaretto</dc:creator><pubDate>Wed, 03 Mar 2021 17:24:21 -0000</pubDate><guid>https://sourceforge.neta96fd7d0509389dc517dc1f0f4f754acc1c9979c</guid></item><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#1a13</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;É na linha 4 do outro script, você tem 2.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Medeiros</dc:creator><pubDate>Wed, 03 Mar 2021 17:15:33 -0000</pubDate><guid>https://sourceforge.net63e2b439eff57c5480da20d13f6f8534405d79c8</guid></item><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#6767</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Continua dando erro, dessa vez aparece      55  03/03/2021 14:11:27 Error   Error running script: Traceback (most recent call last):&lt;br/&gt;
  File "&amp;lt;string&amp;gt;", line 4, in &amp;lt;module&amp;gt;&lt;br/&gt;
AttributeError: 'Reactor_CSTR' object has no attribute 'Flowsheet'  + Info&amp;lt;/module&amp;gt;&amp;lt;/string&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leandro Favaretto</dc:creator><pubDate>Wed, 03 Mar 2021 17:11:46 -0000</pubDate><guid>https://sourceforge.netaed875e6670655de08f19a4d73cd0719e1b0824d</guid></item><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#4c11/77ae</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Teu script tá errado, linha 4:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;obj = obj.Flowsheet.GetFlowsheetSimulationObject('5')&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;troque por&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;Flowsheet = reactor.Flowsheet&lt;/span&gt;
&lt;span class="err"&gt;obj = Flowsheet.GetFlowsheetSimulationObject('5')&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;A referência para o Flowsheet realmente está quebrada, msa você pode pegá-lo através de reactor.Flowsheet.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Medeiros</dc:creator><pubDate>Wed, 03 Mar 2021 14:53:11 -0000</pubDate><guid>https://sourceforge.netb6df9c627034917e6755469e98d24085c72d9199</guid></item><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#4c11</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Vou aproveitar este ticket, já que agora realmente tive um bug! rs&lt;br/&gt;
Ao executar o fluxograma, recebo um erro do tipo "  17  03/03/2021 11:34:55 Error   Error running script: Traceback (most recent call last):&lt;br/&gt;
  File "&amp;lt;string&amp;gt;", line 4, in &amp;lt;module&amp;gt;&lt;br/&gt;
AttributeError: 'Reactor_CSTR' object has no attribute 'GetFlowsheetSimulationObject'   + Info&lt;br/&gt;
Acredito que algo esteja errado com o CSTR. Confira o anexo por favor&amp;lt;/module&amp;gt;&amp;lt;/string&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leandro Favaretto</dc:creator><pubDate>Wed, 03 Mar 2021 14:37:07 -0000</pubDate><guid>https://sourceforge.net03f342bf24102f062d71022d2bf2bce46952290c</guid></item><item><title>#287 Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/?limit=25#031a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Deve retornar r. Na próxima use o fórum, Leandro, já que isso não é um bug.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Medeiros</dc:creator><pubDate>Wed, 03 Mar 2021 13:49:51 -0000</pubDate><guid>https://sourceforge.net1cae73a702669f494806564731505d5c4609eec3</guid></item><item><title>Advanced Kinetics Specification using Python Script</title><link>https://sourceforge.net/p/dwsim/tickets/287/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Daniel. I am studying an first-order kinetic equation, as in, the rate of reaction is r = kCa. My k is dependent on the conditions of the stream, as in, there are inibitions. My python script should return the r, the k, or the Ca? In what units? &lt;br/&gt;
The last line of my python script is:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;r = km_aa*inib_aa*C_aa #kg m^-3 s^-1&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;where km_aa is in s^-1, inib_aa is dimensionless, and C_aa is  in k m^-3&lt;br/&gt;
Is this correct?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leandro Favaretto</dc:creator><pubDate>Wed, 03 Mar 2021 13:41:18 -0000</pubDate><guid>https://sourceforge.neteb22f21146499d42a6175f3c8c5e063221e0b0eb</guid></item></channel></rss>