Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Plot different material curves on the single COMSOL graph

Please login with a confirmed email address before reporting spam

Hey All, I wish to compare different materials onto the same COMSOL graph. That is, I want to plot three different materials on the same graph. How can I do so?


1 Reply Last Post Jun 27, 2023, 2:43 a.m. EDT
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 10 months ago Jun 27, 2023, 2:43 a.m. EDT

Hi Anmol,

If you, for example, want to plot the density for three materials, say, mat1, mat2, and mat3, in your COMSOL model, then add three graph plot nodes under a 1D Plot Group node, and use the following expressions

mat1.def.rho
mat2.def.rho
mat3.def.rho

in the first, second, and third graph plot node, respectively.

Best regards,

Magnus

Hi Anmol, If you, for example, want to plot the density for three materials, say, `mat1`, `mat2`, and `mat3`, in your COMSOL model, then add three graph plot nodes under a **1D Plot Group** node, and use the following expressions mat1.def.rho mat2.def.rho mat3.def.rho in the first, second, and third graph plot node, respectively. Best regards, Magnus

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.