<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 287: Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/" rel="alternate"/><link href="https://sourceforge.net/p/dwsim/tickets/287/feed.atom" rel="self"/><id>https://sourceforge.net/p/dwsim/tickets/287/</id><updated>2021-03-03T17:24:21.752000Z</updated><subtitle>Recent changes to 287: Advanced Kinetics Specification using Python Script</subtitle><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#e00c" rel="alternate"/><published>2021-03-03T17:24:21.752000Z</published><updated>2021-03-03T17:24:21.752000Z</updated><author><name>Leandro Favaretto</name><uri>https://sourceforge.net/u/hyguys/</uri></author><id>https://sourceforge.neta96fd7d0509389dc517dc1f0f4f754acc1c9979c</id><summary type="html">&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;</summary></entry><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#1a13" rel="alternate"/><published>2021-03-03T17:15:33.190000Z</published><updated>2021-03-03T17:15:33.190000Z</updated><author><name>Daniel Medeiros</name><uri>https://sourceforge.net/u/danwbr/</uri></author><id>https://sourceforge.net63e2b439eff57c5480da20d13f6f8534405d79c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;É na linha 4 do outro script, você tem 2.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#6767" rel="alternate"/><published>2021-03-03T17:11:46.466000Z</published><updated>2021-03-03T17:11:46.466000Z</updated><author><name>Leandro Favaretto</name><uri>https://sourceforge.net/u/hyguys/</uri></author><id>https://sourceforge.netaed875e6670655de08f19a4d73cd0719e1b0824d</id><summary type="html">&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;</summary></entry><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#4c11/77ae" rel="alternate"/><published>2021-03-03T14:53:11.634000Z</published><updated>2021-03-03T14:53:11.634000Z</updated><author><name>Daniel Medeiros</name><uri>https://sourceforge.net/u/danwbr/</uri></author><id>https://sourceforge.netb6df9c627034917e6755469e98d24085c72d9199</id><summary type="html">&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;</summary></entry><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#4c11" rel="alternate"/><published>2021-03-03T14:37:07.495000Z</published><updated>2021-03-03T14:37:07.495000Z</updated><author><name>Leandro Favaretto</name><uri>https://sourceforge.net/u/hyguys/</uri></author><id>https://sourceforge.net03f342bf24102f062d71022d2bf2bce46952290c</id><summary type="html">&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;</summary></entry><entry><title>#287 Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/?limit=25#031a" rel="alternate"/><published>2021-03-03T13:49:51.962000Z</published><updated>2021-03-03T13:49:51.962000Z</updated><author><name>Daniel Medeiros</name><uri>https://sourceforge.net/u/danwbr/</uri></author><id>https://sourceforge.net1cae73a702669f494806564731505d5c4609eec3</id><summary type="html">&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;</summary></entry><entry><title>Advanced Kinetics Specification using Python Script</title><link href="https://sourceforge.net/p/dwsim/tickets/287/" rel="alternate"/><published>2021-03-03T13:41:18.272000Z</published><updated>2021-03-03T13:41:18.272000Z</updated><author><name>Leandro Favaretto</name><uri>https://sourceforge.net/u/hyguys/</uri></author><id>https://sourceforge.neteb22f21146499d42a6175f3c8c5e063221e0b0eb</id><summary type="html">&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;</summary></entry></feed>