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
- :
- Re: Graph how this derive ?

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

Highlighted

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

01-13-2019
02:48 AM

01-13-2019
02:48 AM

Hi,

I need a help how to derive the graph . I attached all the reference and Mathcad for your reference.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

01-13-2019
04:10 AM

01-13-2019
04:10 AM

You're welcome, and a happy new year for you too.

Here's a version with grid, that also works in Prime Express:

Success!

Luc

17 REPLIES 17

Highlighted
##

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

01-13-2019
03:03 AM

01-13-2019
03:03 AM

Re: Graph how this derive ?

Why don't you first solve the problems in your sheet?

Aeff is undefined...Define it! Ncr is also undefined... Define it.

Lambda1 is defined with an illegal range. The second value of the range definition must be different from the first. Try setting it from 0 to 0.1

That's for the obvious errors, those flagged by Prime already.

Then there's the problem with phi. You have a function phi (of alpha, lambda0 and lambda1) and you have a variable phi, inside the definition of function chi (again of alpha, lambda0 and lambda1). Those two phi's are not the same. If you want to use the phi defined as function within chi, you HAVE to provide its parameters.

And finally you will have to check your units. Since f0 has a unit (MPa), lambda1 will probably have a unit, depending on the units of Aeff and Ncr. You must make sure that lambda0 has the same unit as lambda1. And from the definition of the function phi, alpha needs that same unit, as does 1.... lambda1 should better be unitless, so Aeff and Ncr need to cancel the unit of f0 out, that is: Ncr/Aeff must have a pressure unit.

But essentially, all you need is this:

Note that I used the min() function to limit chi to 1.

Success!

Luc

Highlighted
##

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

01-13-2019
04:04 AM

01-13-2019
04:04 AM

Re: Graph how this derive ?

Happy new year ..

Thank you . for your the support you provided.

Highlighted

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

01-13-2019
04:10 AM

01-13-2019
04:10 AM

You're welcome, and a happy new year for you too.

Here's a version with grid, that also works in Prime Express:

Success!

Luc

Highlighted
##

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

01-13-2019
10:09 AM

01-13-2019
10:09 AM

Re: Graph how this derive ?

Luc,

What does the function Grid look like in Prime?

Highlighted
##

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

01-13-2019
11:29 AM

01-13-2019
11:29 AM

Re: Graph how this derive ?

Guess you could not open Luc's file?

As far as I am aware you are using Prime Express 4, so why don't you upgrade to version 5?

Here is a picture of the routine Luc had provided:

I posted routines for linear and logarithmic grids here

but Luc's recursive approach using the if-function has the advantage that it works in the limited Expression version, too.

Highlighted
##

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

01-13-2019
11:44 AM

01-13-2019
11:44 AM

Re: Graph how this derive ?

Here are the routines copied to a Prime 4 worksheet

Highlighted
##

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

01-13-2019
12:49 PM

01-13-2019
12:49 PM

Re: Graph how this derive ?

It was a Prime 4 worksheet. I seldomly post a Prime 5 worksheet.

The Grid routine was in a collapsed area.

Highlighted
##

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

01-13-2019
02:04 PM

01-13-2019
02:04 PM

Re: Graph how this derive ?

@LucMeekes wrote:

It was a Prime 4 worksheet. I seldomly post a Prime 5 worksheet.

So my copy and paste action wasn't necessary at all.

On first sight we unfortunately can't distinguish between files from different Prime versions.

Highlighted
##

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

01-14-2019
12:55 AM

01-14-2019
12:55 AM

Re: Graph how this derive ?

How about this grid function ? how this will work ?

Highlighted
##

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

01-14-2019
01:30 AM

01-14-2019
01:30 AM

Re: Graph how this derive ?

Unfortunately you can't just copy and paste pictures in this forum. You have to use the "Photos" button to embed pics in the message body.

Highlighted
##

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

01-14-2019
01:37 AM

01-14-2019
01:37 AM

Re: Graph how this derive ?

I attached the screenshot. I considered x direction 10 and y direction 1. vice versa . why does not show any grid line ?

Highlighted
##

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

01-14-2019
05:27 AM

01-14-2019
05:27 AM

Re: Graph how this derive ?

There was a bug. Sorry

It's solved now.

Prime 4 sheet attached.

Luc

Highlighted
##

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

01-14-2019
05:37 AM

01-14-2019
05:37 AM

Re: Graph how this derive ?

Thank you very much . This helps a lot ...

Highlighted
##

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

02-17-2019
07:44 PM

02-17-2019
07:44 PM

Re: Graph how this derive ?

Thanks Luc and Werner_E for your very good Mathcad sheets.

Now I can use your Mathcad functions.

Tokoro.

Highlighted
##

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

01-13-2019
03:29 PM

01-13-2019
03:29 PM

Re: Graph how this derive ?

Fred,

Here's a Prime 4 file with a Grid function that will do linear and log scale grids.

(The function definition is in the collapsed area.)

Enjoy!

Luc

Highlighted
##

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

01-13-2019
11:15 PM

01-13-2019
11:15 PM

Re: Graph how this derive ?

Nice.. The log scale grid will give a good presentation in my graph..

Highlighted
##

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

01-13-2019
11:17 PM

01-13-2019
11:17 PM

Re: Graph how this derive ?

Thanks Werner and Luc!