Last change
on this file since 2732 was
869,
checked in by aslmd, 12 years ago
|
24/01/2013 == AS + JL
A more robust way to refer to gas type.
- Gas names with an arbitrary number of characters (<20) can be used
This is good for C2H2, C2H6, H2SO4, C17H21NO4, etc...
!!! Remember this must be compliant with Q.dat in corrk_data !!!
- igas_... labels are assigned once for all in su_gases
Then using igas_... everywhere instead of gnom (except for kcm stuff)
- Users can still use e.g. H2_ but H2 also works
- Simplified condense_cloud so that igas_CO2 is used directly
|
-
Property svn:executable set to
*
|
File size:
641 bytes
|
Rev | Line | |
---|
[305] | 1 | double precision function cp_neutral(T) |
---|
| 2 | |
---|
[471] | 3 | use gases_h |
---|
| 4 | |
---|
[305] | 5 | implicit none |
---|
| 6 | |
---|
| 7 | ! inputs |
---|
| 8 | double precision T |
---|
| 9 | |
---|
| 10 | |
---|
[869] | 11 | ! this function has been disabled in gradients_kcm.F90 because it doesnt |
---|
[716] | 12 | ! work if you have gaseous mixtures. need to decide whether to generalise |
---|
| 13 | ! it or simply remove entirely... |
---|
| 14 | |
---|
[305] | 15 | ! Cp_n : cf CO2 dans abe&matsui (1988) |
---|
| 16 | !cp_neutral = (22.26+5.981d-2*T-3.501d-5*T**2+7.469d-9*T**3)/m_n |
---|
| 17 | |
---|
[869] | 18 | if(trim(gnom(1)).eq.'N2_')then |
---|
[305] | 19 | cp_neutral = 1040.0 |
---|
[869] | 20 | elseif(trim(gnom(1)).eq.'H2_')then |
---|
[305] | 21 | cp_neutral = 14310.0 |
---|
| 22 | else |
---|
| 23 | print*,'Gas not recognised in cp_neutral!' |
---|
| 24 | call abort |
---|
| 25 | endif |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | end function cp_neutral |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.