Calculating density using temp. and salinity?

  • Thread starter Thread starter thethedev
  • Start date Start date
  • Tags Tags
    Density
Click For Summary
SUMMARY

The discussion centers on calculating the density of water using temperature and salinity. The formula provided is derived from a JavaScript function named rhoscalc, which incorporates temperature and salinity concentration to compute density. Key variables in the formula include coefficients A and B, which are dependent on temperature, and the final density is adjusted based on salinity concentration. The source of the formula can be found at CSG Network.

PREREQUISITES
  • Understanding of water density concepts
  • Familiarity with temperature and salinity measurements
  • Basic knowledge of JavaScript programming
  • Ability to manipulate mathematical formulas
NEXT STEPS
  • Research the derivation of the density formula for seawater
  • Learn about the impact of temperature and salinity on water density
  • Explore JavaScript functions for scientific calculations
  • Investigate other methods for calculating water density
USEFUL FOR

Scientists, marine biologists, environmental researchers, and anyone involved in oceanography or fluid dynamics who needs to calculate water density based on temperature and salinity.

thethedev
Messages
1
Reaction score
0
Hi
Does anyone know how to work out the density of water using just the temperature and the salinity?
There must be a formula as I've found a few sites that do the conversion for you but I need the actual formula.
Any help at all is appreciated thanks
 
Physics news on Phys.org
Maybe not much help but my web browser allows me to view the web page source which for the following page has the formula as part of the web page:

from

http://www.csgnetwork.com/h2odenscalc.html


function rhoscalc (rho,conc,temp) { // temp and conc dependent density

var rhos, A, B, temp;

A = 0.824493 - 0.0040899*temp + 0.000076438*Math.pow(temp,2)-0.00000082467*Math.pow(temp,3) + 0.0000000053675*Math.pow(temp,4);

B = -0.005724 + 0.00010227*temp - 0.0000016546*Math.pow(temp,2);

rhos = rho + A*conc + B*Math.pow(conc,(3/2)) + 0.00048314*Math.pow(conc,2);

return rhos;

}


You might be able to reverse engineer the formula you need?
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 84 ·
3
Replies
84
Views
8K
Replies
37
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K