Skip to content

How to generate plane wave using JUDI #168

Answered by tjk9501
tjk9501 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
Before the update of newer versions, I tried the following method to record wavefields: In the following code I deploy receivers on each grid point of the simulation domain, but executing the code results in process being killed by julia. I don't know whether it is because the simulation exceeds memory upper bounds set in Julia (because similar setting can be run in other finite difference programs), and I want to find a way to make the code running. Here is the code snippet

using JUDI, SegyIO, LinearAlgebra, Plots
# Set up model structure
n = (120, 100)   # (x,y,z) or (x,z)
d = (10., 10.)
o = (0., 0.)
# Velocity [km/s]
v = ones(Float32,n) .+ 0.4f0
# v[:,Int(round(end/2)):end] .= 3…

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
8 replies
@tjk9501
Comment options

@mloubout
Comment options

@tjk9501
Comment options

@tjk9501
Comment options

@mloubout
Comment options

Comment options

You must be logged in to vote
6 replies
@tjk9501
Comment options

@mloubout
Comment options

@mloubout
Comment options

@mloubout
Comment options

@tjk9501
Comment options

Comment options

You must be logged in to vote
3 replies
@mloubout
Comment options

@tjk9501
Comment options

@tjk9501
Comment options

Answer selected by tjk9501
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants