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
- :
- Solve block function says the 'This value must be ...

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

11-21-2013
05:18 PM

11-21-2013
05:18 PM

Hello,

I am unable to get the solve block function to work with what I"m trying to find. Essentially I'm starting a low level solve block that I hope to expand on. Currently I have a fluid that moves through a pipe, and has energy transfered to it. I am making an assumption that the surface temperature is constant.

I have no idea why the solve block is failing. Shouldn't it solve for my temperature out?

The expansion I'm wanting to do is solve for the Temperature lost in a fluid as it moves through a line. I'm wanting to use the ambient temperature only, and I won't know the inside or outside temperatures of the wall or the ending temperature. I will though, know that the convection on the inside of the pipe = conduction through the pipe = convection to ambient settings which should equal the temperature lost of the fluid.

I'm unable to get the first part of the solve block to work properly. Any help is much appreciated.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

11-21-2013
07:03 PM

11-21-2013
07:03 PM

Every calculation which is dependend on the searched for variable T.fo has to be turned into a function of this variable.

The result is far away from what you expected as in Rogers solution.

6 REPLIES 6

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

11-21-2013
05:53 PM

11-21-2013
05:53 PM

Re: Solve block function says the 'This value must be a function'.

I'm getting a pretty wacky answer, but it seems consistent if I were to plot Q_conv and Q_transport.

BTW, the original warning ("This value must be a function") was because of this term:

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

11-21-2013
07:08 PM

11-21-2013
07:08 PM

Re: Solve block function says the 'This value must be a function'.

Aw, I think I may now know what the problem is. I think I must define each single thing as a function. So in my original copy, I believe I needed to define Tavg as a function of Tfi and Tfo instead of just saying it was Tavg. As well, the reason for the weird answere is because the table is off. I fixed the table of values in your sheet, and on slight error, and I got the same answer then; so we are good.

I think that is why it wasn't working, is because I wanted mathcad to solve a condition that wasn't 'classified' as a function of the variables I needed to put in it. As a quick test, if you define Tavg in your sheet, the solve block will actually change the answer unless you define it as Tavg(Tfi,Tfo)

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

11-21-2013
07:03 PM

11-21-2013
07:03 PM

Every calculation which is dependend on the searched for variable T.fo has to be turned into a function of this variable.

The result is far away from what you expected as in Rogers solution.

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

11-21-2013
07:16 PM

11-21-2013
07:16 PM

Re: Solve block function says the 'This value must be a function'.

I replaced the table and then fixed the slight error in the Q Transport function, and it works out. Thank you greatly for your help. This will allow me to set up my more complicated system. I'm basically looking to see if at a thick enough tube, or for various ambient conditions, if the fluid temperature gradient will be large enough to warrant a concern that I'd need to express the conduction temperature of the pipe as a function of radius and length z, thereby going into bessel equations.

I have attached the fixed worksheet.

Thank you greatly for your help.

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

11-21-2013
07:19 PM

11-21-2013
07:19 PM

Re: Solve block function says the 'This value must be a function'.

You don't have to keep all that functions in the solve block but may define them before.

So the solve block would consist of three lines only: guess value, constraint(Q...=Q...) and the line with find.

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

11-25-2013
05:43 PM

11-25-2013
05:43 PM

Re: Solve block function says the 'This value must be a function'.

I am wondering then how to fix this new problem. I have fixed the error for the basic file, but now I want to express the heat transfer not knowing the wall temperature but rather knowing the ambient temperature. The equations are not too bad to solve, but I'm having issues with the solve block. I would like to put my conditions in as a function and get the feedback for the correct outlet temperature (assuming the thermal gradient isn't too large that the wall temperature varies greatly in the z direction along the pipe axis).

The issue is I would like to express the properties of any given substance as a function of temperature.

The excel spreadsheet (minus updating the properties) gives a correct answer by iterating through. The user needs to press the buttons several times until all errors are zero.

I know I can do this problem in excel or a programing language, but the outputs look messy. For my project homework I'd like to use Mathcad to express the given solution, that way it is more readily checked.