利用MATLAB数值求解边值问题——Berman问题

在偏微分方程的课堂上学习了Berman边界值问题

为了研究U235的扩散、气体的冷凝,Berman提出以下模型:

利用摄动方法,将非线性问题转化为线性问题,得出如下数学模型:

利用bvp4c函数数值求解,代码如下:

function bvp_example
    R_values = [25.445, 14.678, 13.226]; %不同的雷诺数
    colors = ['r', 'g', 'b']; 
    solinit = bvpinit(linspace(0, 1, 10), [-2 -90 -3 -10]); %赋给的初始值
    figure;
    hold on;
    xlabel('x');
    ylabel('f''(x)');
    title('f''图像 (不同R值)');
    grid on;
    for i = 1:length(R_values) %对不同雷诺数分别画图
        R = R_values(i);
        sol = bvp4c(@(x, y) odefun(x, y, R), @bcfun, solinit); %bvp4c函数
        x = linspace(0, 1, 100);
        y = deval(sol, x);
        plot(x, y(2, :), colors(i), 'DisplayName', ['R = ', num2str(R)]);
    end
    legend('show');
    function dydx = odefun(x, y, R) %将高阶常微分方程转化为一阶常微分方程组
        f = y(1);
        fp = y(2);
        fpp = y(3);
        fppp = y(4);
        dydx = [fp; fpp; fppp; R * (f * fppp - fp * fpp)];
    end
    function res = bcfun(ya, yb) %边界值
        res = [ya(1); ya(3); yb(2); yb(1) - 1];
    end
end

代码运行的结果如下图:

  • 16
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
Casola, V., & Castiglione, A. (2020). Secure and Trustworthy Big Data Storage. Springer. Corriveau, D., Gerrish, B., & Wu, Z. (2020). End-to-end Encryption on the Server: The Why and the How. arXiv preprint arXiv:2010.01403. Dowsley, R., Nascimento, A. C. A., & Nita, D. M. (2021). Private database access using homomorphic encryption. Journal of Network and Computer Applications, 181, 103055. Hossain, M. A., Fotouhi, R., & Hasan, R. (2019). Towards a big data storage security framework for the cloud. In Proceedings of the 9th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, USA (pp. 402-408). Rughani, R. (2019). Analysis of Security Issues and Their Solutions in Cloud Storage Environment. International Journal of Computer Trends and Technology (IJCTT), 67(6), 37-42. van Esbroeck, A. (2019). Zero-Knowledge Proofs in the Age of Cryptography: Preventing Fraud Without Compromising Privacy. Chicago-Kent Journal of Intellectual Property, 19, 374. Berman, L. (2021). Watch out for hidden cloud costs. CFO Dive. Retrieved from https://www.cfodive.com/news/watch-out-for-hidden-cloud-costs/603921/ Bradley, T. (2021). Cloud storage costs continue to trend downward. Forbes. Retrieved from https://www.forbes.com/sites/tonybradley/2021/08/27/cloud-storage-costs-continue-to-trend-downward/?sh=6f9d6ade7978 Cisco. (2019). Cost optimization in the multicloud. Cisco. Retrieved from https://www.cisco.com/c/dam/en/us/solutions/collateral/data-center-virtualization/cloud-cost-optimization/cost-optimization_in_multicloud.pdf IBM. (2020). Storage efficiency solutions. IBM. Retrieved from https://www.ibm.com/blogs/systems/storage-efficiency-solutions/ Microsoft Azure. (n.d.). Azure Blob storage tiers. Microsoft Azure. Retrieved from https://azure.microsoft.com/en-us/services/storage/blobs/#pricing Nawrocki, M. (2019). The benefits of a hybrid cloud strategy for businesses. DataCenterNews. Retrieved from https://datacenternews.asia/story/the-benefits-of-a-hybrid-cloud-strategy-for,请把这一段reference list改为标准哈佛格式
05-29

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值