topic Re: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128037#M50375
<HTML><HEAD></HEAD><BODY><P>Unfortunately you can't use vector / vector elements as variables to search for that way.</P><P>Furthermore a guess value for pH is missing.</P><P></P><P>You may try something like Find(C1, pH) but then I get the message, that Ka.N is not defined. Not sure why "Trace" sends me to this equation at the very top which is way outside the solve block.</P></BODY></HTML>Wed, 05 Apr 2017 14:13:44 GMTWerner_E2017-04-05T14:13:44ZProblem with a given-find solve block for anaerobic digestion modelling in Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128036#M50374
Hello, dear community!I am trying to find the problem with the resolution of these equations. They correspond to mass balances in CSTRs and a charge balance to determine pH. See attached spreadsheet.Best Regards,BaltasarThu, 03 May 2018 13:43:03 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128036#M50374aa-82018-05-03T13:43:03ZRe: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128037#M50375
<HTML><HEAD></HEAD><BODY><P>Unfortunately you can't use vector / vector elements as variables to search for that way.</P><P>Furthermore a guess value for pH is missing.</P><P></P><P>You may try something like Find(C1, pH) but then I get the message, that Ka.N is not defined. Not sure why "Trace" sends me to this equation at the very top which is way outside the solve block.</P></BODY></HTML>Wed, 05 Apr 2017 14:13:44 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128037#M50375Werner_E2017-04-05T14:13:44ZRe: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128038#M50376
<HTML><HEAD></HEAD><BODY><P>When I get an error inside a solve block, I copy all of the equations in the solve block and paste them outside of the block and then evaluate them (press equal sign so MathCAD evaluates the equation). This forces MathCAD to specifically identify the problem with that equation. For example, in your worksheet you also don't define Q.1 properly because you have a typo in Q1:=100. You also have a typo of "Q..1" in equation Q.in * C0[4. And it doesn't look like any of your Ka values have been defined.</P><P></P><P>So just go through the errors that MathCAD identifies in each one of those equations outside of the solve block and make the corrections inside the solve block. Once you have all of those worked out we can work on getting the solve block to work properly.</P></BODY></HTML>Wed, 05 Apr 2017 15:52:04 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128038#M50376jfuredy2017-04-05T15:52:04ZRe: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128039#M50377
<HTML><HEAD></HEAD><BODY><P>The following variables (constants?) Are not defined nor initialized:</P><P><IMG alt="ImmagineKa2pKaCPi.jpg" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/114121_ImmagineKa2pKaCPi.jpg" style="height: 104px; width: 620px;" /></P></BODY></HTML>Wed, 05 Apr 2017 17:42:05 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-with-a-given-find-solve-block-for-anaerobic-digestion/m-p/128039#M50377-MFra-2017-04-05T17:42:05Z