Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Problem with a given-find solve block for anaerobi...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-05-2017
09:07 AM

04-05-2017
09:07 AM

Problem with a given-find solve block for anaerobic digestion modelling in Mathcad

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,

Baltasar

Labels:

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-05-2017
10:13 AM

04-05-2017
10:13 AM

Re: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad

Unfortunately you can't use vector / vector elements as variables to search for that way.

Furthermore a guess value for pH is missing.

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-05-2017
11:52 AM

04-05-2017
11:52 AM

Re: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad

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.

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-05-2017
01:42 PM

04-05-2017
01:42 PM

Re: Problem with a given-find solve block for anaerobic digestion modelling in Mathcad

The following variables (constants?) Are not defined nor initialized: