Comments (2)
@logan-pearce is going to help integrate this
from virga.
Tholin:
pvap_tholin_bars = 10**(7.6106 - 11382./T) !this is actually the KCl vapor pressure, not a real tholin one.
c Then convert from bars to dynes/cm^2
pvap_tholin = pvap_tholin_bars*1e6
Soot:
pvap_soot_bars = 10.d0**(7.6106 - 11382./t) !this is actually the KCl vapor pressure, not a real soot one.
c Then convert from bars to dynes/cm^2
pvap_soot = pvap_soot_bars*1e6
Gas Properties from @semoran
def tholin(mw_atmos, mh = 1,gas_mmr=None):
"""Defines properties for Haze with Khare 1984 tholin refractive indices as if it were solid in atmosphere.
Parameters
----------
mw_atmos : float
Mean molecular weight of the atmosphere amu
gas_mmr : float , optional
Gas mass mixing ratio
None points to the default value of : 8.80e-7
mh : float , optional
Metallicity, Default is 1=1xSolar
Returns
-------
Mean molecular weight of gas,
Gas mass mixing ratio
Density of gas cgs
"""
if mh != 1: raise Exception("Alert: No M/H Dependence in FakeHaze Routine. Consult your local theorist to determine next steps.")
if isinstance(gas_mmr, type(None)):
gas_mmr = 1e-7
gas_mw = 500. #this actually quite low but for testing.
gas_mmr = gas_mmr * (gas_mw/mw_atmos)
rho_p = 1.38 #average in g/cm3 from He+2017 --- can't find Khare report, so we use this for now
return gas_mw, gas_mmr, rho_p
from virga.
Related Issues (9)
- units in notebook 4_PairingOutputToPICASO HOT 1
- Feature request to pass do_virtual from top level in picaso to eddysed in virga HOT 1
- Add check that input condensible is a list
- Return fig in recommend_gas
- Feature request: Enable virga.justdoit.recommend_gas to return the figure instead of just show it
- Bug: `virga.justdoit.condensation_t` returns an array of constant values HOT 1
- Question on 1_GettingStarted. Lack of .refrind folder. HOT 2
- justplotit cloud structure heat map problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virga.