How to Write Fortran Code for a Complex Phase Speed

  • Context: Fortran 
  • Thread starter Thread starter logi
  • Start date Start date
  • Tags Tags
    Code Fortran
Click For Summary
SUMMARY

This discussion focuses on writing Fortran code to calculate complex phase speed based on specific mathematical conditions. The equations provided define constraints on the variables CR and CI, with parameters α1 and α2 determining the valid region for phase speed calculations. The conditions are expressed through inequalities involving the variables and constants µ, γ, and k. The user seeks assistance in translating these mathematical expressions into functional Fortran code.

PREREQUISITES
  • Understanding of Fortran programming language
  • Familiarity with complex numbers and their representation in programming
  • Knowledge of mathematical inequalities and their implications in physics
  • Basic concepts of numerical methods for solving equations
NEXT STEPS
  • Study Fortran syntax for implementing mathematical functions and conditions
  • Learn about complex number handling in Fortran, particularly in version 2008
  • Research numerical methods for solving inequalities in computational physics
  • Explore existing Fortran libraries for mathematical computations
USEFUL FOR

Physicists, computational scientists, and software developers involved in numerical simulations and modeling using Fortran, particularly those focusing on wave dynamics and phase speed calculations.

logi
Messages
6
Reaction score
0
Hi,

We assume
Max hBy(y) = α1 for y ε (a1, a2) and Min hBy(y) = α2 for y ε (a1, a2)
Where -∞ < α2 ≤ α1 < ∞, and the complex phase speed must lie in the region defined by

(CR + α1 )^2 + CI^2 ≤ µγ^2/k^2, if CR <- α1

CI^2 ≤ µγ^2/k^2, if -α1≤ CR ≤-α2,

(CR + α2 )^2 + CI^2 ≤ µγ^2/k^2, if CR >- α2

Where CI ≥ 0 and γ^2= max [hBy(y) h0y(y)] >0, h0y(y)= -8(y-a)/L^2
The region represents a rectangle of length α1 - α2 with a quarter circle on each end, with the height of the rectangle and the radius of the circles given by µ^(1/2)γ/k.

Could you please help me to write the Fortran code for this equations?

Thanks
Logi
 
Technology news on Phys.org
You have already asked that question.

https://www.physicsforums.com/showthread.php?t=241115

Show how you tried.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
6
Views
4K
  • · Replies 54 ·
2
Replies
54
Views
5K
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K