Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.2K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Computation with Boltzman constant

Posted 2 years ago

Hi, I'm trying to run some calculations which includes the Boltzman constant but I'm getting some errors. I'm also attempting with the Quantity["BoltzmannConstant"] but not sure how to use it within the these simple equations. Any help will be greatly appreciated.


Thanks

Attachments:
4 Replies

Sorry, I forgot something else, these variables would be well defined ?: Thanks

La = Quantity[3 x 10^10, 1/"Centimeters"^2 * "Seconds"];
\[Sigma] = Quantity[2.02 x 10^-18, 1/"Centimeters"^2]^ ;
nNO = Quantity[1 x 10^8, 1/"Centimeters"^3];
deltaz = Quantity[900, "Kilometers"];
H = Quantity[10, "Kilometers"];
k = Quantity[3.5 x 10^-7, 1/"Centimeters"^3];
ne = Quantity[ 5.23 x 10^5, 1/"Centimeters"^3];
ni = Quantity [5.09 x 10^5, 1/"Centimeters"^3];
Posted 2 years ago

σ looks wrong, there is an extra ^ at the end. Also x does not represent multiplication, use *. I am not sure what you are calculating so I cannot say if it is right or wrong. Check the dimensions of Hp is that what you expect? For g you can use

g = Quantity[1, "StandardAccelerationOfGravity"]
POSTED BY: Rohit Namjoshi
Posted 2 years ago

You have to use Quantity to specify units. m^2 is not meters squared, it is the symbol m squared, and m is used on the left hand of Set. This is the equivalent to evaluating zz = zz + 1 which will result in recursion. Try

P = Quantity[0.18, "Pascals"];
\[Rho] = Quantity[88.7 , 1/"Centimeters"^3];
T = Quantity[190, "Kelvins"];
kb = Quantity[1, "BoltzmannConstant"];

m = kb*\[Rho]/P*T
(* 1.292670978*10^-12 *)
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard