Contour plot of Landau energy density
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi! I have the Landau energy density for ferroelectric where X,Y,Z are components of polarization and Y is a polar axis.
Using this code I obtain a standart plot of 2 minima.
clear all
X = -0.1:0.001:0.1;
Y = -0.1:0.001:0.1;
Z = -0.1:0.001:0.1;
ax = 0.132;
az = 0.214;
a0 = 3.5e7;
b = 7.5e11;
axz = -0.011;
Tc = 322;
T = 200;
F = (X.^2)*ax + (Y.^2)*a0*(T - Tc) + (Z.^2)*az + (Y.^4)*b + (X.*Z)*axz;
figure(1)
plot(Y,F)
I need to obtain a contour plot with states of polarization (for example in XY-plane). Here it will be just 2 minima, because only one axis Y is polar and has a fourth power in the potential. The contour should look similar like in the attached picture but only with 2 minima. I would be very grateful for the ideas and recommendations expressed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1566984/image.png)
댓글 수: 0
답변 (1개)
Yash
2023년 12월 22일
Hello Hexe,
To obtain a contour plot with the states of polarization, you can use the 'contour' function in MATLAB. This function will help you generate a contour plot with any number of contour levels, representing the states of polarization in the XY-plane. You can adjust the number of contour levels to achieve the desired level of detail in the plot.
You can refer to the documentation of the 'contour' function to know how to use it in your code: https://www.mathworks.com/help/matlab/ref/contour.html
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!