SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Sub/Naval & General Games Discussion
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-25-25, 04:30 AM   #1
blackcan
Gunner
 
Join Date: Oct 2012
Location: Germany
Posts: 100
Downloads: 97
Uploads: 0
Default

Quote:
Originally Posted by magicstix View Post
Just FYI, you can get a decent propagation model off github with USML (UnderSea Modeling Library).

It's a 3d acoustic raytracer.

Add in some historic sound speed profiles from NOAA's World Ocean Atlas and gebco bathymetry and you can get a very accurate sound propagation model for your SONAR.
Oh Awesome! Thank you i didn't knew that existed open source!
I will probably implement this and also the "simplified" Thorp Model to better support low end and old Hardware and either have this as a Fallback depending on Distance (I am not 100% sure but i assume, the closer the Target the is the less relevant is the useage of the USM Raytracer or thorp modell) or have it toggle able in the Options

Thank you a lot!
__________________
blackcan is offline   Reply With Quote
Old 12-29-25, 04:43 PM   #2
magicstix
Commander
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 469
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by blackcan View Post
Oh Awesome! Thank you i didn't knew that existed open source!
I will probably implement this and also the "simplified" Thorp Model to better support low end and old Hardware and either have this as a Fallback depending on Distance (I am not 100% sure but i assume, the closer the Target the is the less relevant is the useage of the USM Raytracer or thorp modell) or have it toggle able in the Options

Thank you a lot!
Thorp is just an absorption coefficient model. It doesn't really add a whole lot above simple geometric spreading.

Whether or not you need an actual raytracer depends entirely on the sound speed profile gradient. You'd generally only see "straight line" (called isovelocity or sometimes incorrectly referred to as direct path) propagation at very short ranges (< 2 km), but even then it's not guaranteed. If the profile gradients are steep the ray paths can start bending immediately.
magicstix is offline   Reply With Quote
Old 01-02-26, 07:58 PM   #3
blackcan
Gunner
 
Join Date: Oct 2012
Location: Germany
Posts: 100
Downloads: 97
Uploads: 0
Default

Quote:
Originally Posted by magicstix View Post
Thorp is just an absorption coefficient model. It doesn't really add a whole lot above simple geometric spreading.

Whether or not you need an actual raytracer depends entirely on the sound speed profile gradient. You'd generally only see "straight line" (called isovelocity or sometimes incorrectly referred to as direct path) propagation at very short ranges (< 2 km), but even then it's not guaranteed. If the profile gradients are steep the ray paths can start bending immediately.
Yes i know but what thorp enables me from open world aspect is to precaculate each cell of my spatial quad tree with their attenuations in respect to speed, so i can skip any calculations when the ambient / distance / sound strength etc. would be too big anyways

for the USML Raytracer i will need to check on performance and thread safety for several emitter + several receiver.
__________________
blackcan is offline   Reply With Quote
Old 01-02-26, 08:45 PM   #4
magicstix
Commander
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 469
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by blackcan View Post
Yes i know but what thorp enables me from open world aspect is to precaculate each cell of my spatial quad tree with their attenuations in respect to speed, so i can skip any calculations when the ambient / distance / sound strength etc. would be too big anyways

for the USML Raytracer i will need to check on performance and thread safety for several emitter + several receiver.
"...attenuations in respect to speed..."

Not quite sure I follow. Attenuation isn't speed related; it's entirely based on distance and reflection losses.

Is your plan somehow to use the quad tree to add up all cells between source and receiver and calculate the attenuation from that? That would be less accurate than just doing simple geometric spreading.

The sonar equation is very simple:

RL = SL - TL;

PD = (RL - LE + DI) * RD;

Where:

RL = receive level
SL = source level
TL = transmission loss

PD = probability of detect
LE = noise level (Ambient + self)
DI = directivity index (Ability of beamformer and processing to increase gain)
RD = recognition differential (50% chance of a SONAR operator "seeing" a trace bright enough to call contact. Personally I wouldn't use this metric as it's very arbitrary)

LE = Ns + Nw + Self
Ns = shipping noise
Nw = wind noise
Self = Self noise

For a simulation you'd want to cast it in terms of SNR, which is just
SNR = (SL - TL + DI) - LE, but you can simply say "if RL > LE we have a chance at contact" or, more accurately, if RL > some threshold above LE we hold contact.

LE would be the average brightness of your background "salt and pepper" on the waterfall, and RL is the individual contact trace. If a trace is bright enough to exceed that LE, then a player can see it, otherwise it's lost in the background noise.

USML is how you calculate the TL term, but it also gives you other useful information like the ray arrival angles and will create real effects like CZs and shadow zones.
magicstix is offline   Reply With Quote
Reply

Tags
cold, pixelart, subsim, war

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.