Solving PDE w/ complex Neumann boundary condition
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am working on combustion instabilities and therefore looking into eigenmodes. To solve for the pressure distribution u, I have to define my boundary conditions. As I understood from the Mathworks website, the Neumann BC is written in a general form as grad(u) + q * u = g. I am able to solve for real values of q (and I'm setting g=0), this being one of my BC:
neumann = [1 0 6 6 '0.1000' '0.0000']';
Can anybody tell me if there is a possibility to extent q values to imaginary values and thus q = q_r + iq_i?
Regards,
Simon R2011a
0 个评论
采纳的回答
Bill Greene
2013-8-17
Hi,
The expression within the single quotes has to be a valid MATLAB arithmetic expression. To define a complex number in MATLAB do either:
a + i*b
or
a + sqrt(-1)*b
The second form can be useful when the variable i has been redefined for some other purpose such as a loop index. So, in some ways, it is safer.
Bill
0 个评论
更多回答(3 个)
Bill Greene
2013-8-16
Hi,
Yes, PDE Toolbox allows the BC (or PDE) coefficients to be imaginary. Are you running into a particular problem?
Bill
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Boundary Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!