Shallow Water Equations - Lax Wendroff Method - FORTRAN Code
Hey everyone,
I'm writing a FORTRAN Code for simulating the propagation of shallow water waves (1D). The case is pretty simple: I have a wave generator on one end of the pool and a Wall boundary condition on another. I'm using the Lax Wendroff Method. The equations have the form: ! ! dh/dt + dA/dx = 0 ! ! dA/dt + dB/dx = C The difficulty which I am facing is the implementation of the Boundary Conditions for the half time steps. For this reason, I haven't been able to initiate wave propagation over the surface. Anybody with experience is welcome to comment so that I may share more detail and/or code. |
Quote:
How do you implement the LW method? Why have you needed about half stime step? |
Quote:
I have a wall boundary condition on the left. A wave generator on the right which generates a sine wave throughout the time domain. I have correctly applied the initial conditions: the initial water depth=1 and the initial velocity in water=0. The main part of the code for the Lax-Wendroffs two step method is attached below: Code:
DO j=1,NT+1 |
COuld you write exactly the PDE system with the BC.s?
|
2 Attachment(s)
I have attached the System of PDES and BCs.
The wave generator is at N+1. Attachment 63654 Attachment 63655 |
1 Attachment(s)
I want to solve this problem but I can’t because it is my first time that I am coding so I need help for solve
Anybody can help me?????? Attachment 63657 MATLAB or fortran Please help me...... |
Quote:
I have asked for the PDE problem not the numerical method... |
1 Attachment(s)
The code I have written in the post above is incorrect. I have corrected it.
There is one problem I cannot solve. The wall is a reflective boundary condition. The boundary condition which I have written in the attachments above is incorrect. HNP1(1) ~ The water level at the wall must be assigned a value such that the wave is reflected off the wall. Attachment 63684 |
All times are GMT -4. The time now is 17:00. |