Solving Mathcad Plot Problem for Yield Simulation Project

In summary, to plot a yield locus in Mathcad, you can use the Matrix Plot feature to plot the corresponding values of two principal stresses against each other. This can be done by specifying the matrix to be plotted and the x-axis and y-axis columns in the Matrix Plot dialog box.
  • #1
timmay
122
1
As part of a yield simulation project, I have created a datasheet in Mathcad to calculate the principal stresses acting on a tested sample. Due to the fact I have only recently started to use Mathcad (and would like to use it more), I am having trouble plotting a yield locus using its graph functions.

Basically, I have defined two functions for the two principal stresses, sigma subcript 1 and sigma subscript 2. These are functions-of-functions themselves, so that I could merely create data tables with the measured quantities and calculate the stresses as a function of that tabular data.

The problem arises when I come to plot a graph. I would like to plot each obtained value of sigma subscript 2 against the corresponding value of sigma subscript 1. The only way I can think of to achieve this is to put all my calculated values into a matrix.

But how can I plot corresponding components of this matrix against each other?

Sorry for the long winded explanation - I knew I should have used Matlab and just got it over and done with :)
 
Physics news on Phys.org
  • #2
Fortunately, Mathcad does have a feature for plotting data from matrices. It's called the Matrix Plot, and it can be found under the View menu. Once you select this option, you'll be given a dialog box where you can specify the matrix to be plotted, as well as the x-axis and y-axis columns. After you have specified your settings, click OK and you should have a graph of the corresponding components of your matrix.
 
  • #3


First of all, I want to commend you for taking on the challenge of using Mathcad for your yield simulation project. It's great that you are trying to expand your skills and utilize this software more. Now, let's tackle the issue at hand.

To plot a yield locus using Mathcad's graph functions, you will need to make sure that your data table is set up correctly. Each column in your data table should represent a different variable, in this case, sigma subscript 1 and sigma subscript 2. The rows should represent the corresponding values for each variable. Once your data table is set up correctly, you can use the "XY plot" function in Mathcad to plot your data.

To do this, go to the "Insert" tab and select "XY plot". Then, select the columns of data that you want to plot (in this case, sigma subscript 1 and sigma subscript 2). Mathcad will automatically plot these values against each other, giving you your yield locus.

If you want to plot multiple data points on the same graph, you can use the "Add to plot" function. This will allow you to select additional columns of data and plot them on the same graph.

I hope this helps you with your plot problem. Remember, it's always a learning process when using new software, so don't be afraid to experiment and try different methods. Good luck with your yield simulation project!
 

Related to Solving Mathcad Plot Problem for Yield Simulation Project

1. How do I input data into Mathcad for my yield simulation project?

To input data into Mathcad, you can either type it in manually or import it from a data file. To type in data manually, simply click on the desired cell and enter the data. To import data from a file, click on the Data tab and select "Import Data". Choose the file you want to import and follow the prompts to import the data into your Mathcad document.

2. How do I create a plot in Mathcad for my yield simulation project?

To create a plot in Mathcad, click on the Insert tab and select "Plot". Choose the type of plot you want to create (e.g. line, scatter, bar) and select the data you want to plot. You can also customize the appearance of your plot by clicking on the plot and using the options in the Plot ribbon.

3. How do I solve for a specific variable in my yield simulation project using Mathcad?

To solve for a specific variable in Mathcad, you can use the solve block function. First, define the equation you want to solve for and the variable you want to solve for. Then, use the solve function to calculate the value of the variable. You can also use the "Solve for" option in the Calculate tab to solve for a specific variable.

4. Can I export my plots from Mathcad for my yield simulation project?

Yes, you can export your plots from Mathcad in a variety of formats, including image files (PNG, JPG, etc.) and vector graphics (SVG, EPS). To export a plot, simply right-click on it and select "Export as" or go to the File tab and select "Export". Choose the desired format and save the file to your computer.

5. How do I troubleshoot errors in my Mathcad plot for my yield simulation project?

If you encounter errors in your Mathcad plot, first double-check your data and equations to ensure they are correct. You can also use the Mathcad error checker by clicking on the Check tab and selecting "Check Document". This will highlight any potential errors in your document. If you are still having trouble, consult the Mathcad help documentation or reach out to the Mathcad community for assistance.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
360
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
772
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
6K
Back
Top