Hi. I see that the makeGrid command is needed for the program, and that the grid it makes is centered on 0,0. It would be nice if I could make a model who's origin is more convenient, like at the middle of the transducer or target, or focus. Is that possible? Thanks.
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Does the origin of the grid need to be at 0,0 (Cartesian)?
(2 posts) (2 voices)-
Posted 7 years ago #
-
Hi ad000000,
Most of the k-Wave inputs are grid based (e.g., the source mask), so externally, you can assume any coordinate system origin. However, the inputs that are Cartesian based (e.g., using a Cartesian sensor mask, or using functions such as
makeCartSphere
) assume the origin is in the centre of the grid at(Nx/2, Ny/2, Nz/2)
, and it's not currently possible to change this.Brad.
Posted 7 years ago #
Reply
You must log in to post.