FormingWorlds / PROTEUS

Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets.
https://fwl-proteus.readthedocs.io
Apache License 2.0
12 stars 1 forks source link

Generalise stellar wrapper, dummy star module #220

Closed nichollsh closed 1 month ago

nichollsh commented 1 month ago

This PR adds a dummy star module. It calculates the stellar spectrum and bolometric luminosity assuming that the star emits like a blackbody with a temperature and radius specified by the user. Added dummy_star.toml configuration to demonstrate this, but there isn't a test for this yet. Closes #202.

It also reworks the stellar module handling to generalise calculations between the mors and dummy modules. This mostly means moving functions into src/proteus/star/ and calling these from proteus.py. This also meant moving a lot of variables in proteus.py into the Proteus class, which will also be useful for later work (e.g. #204, #162).

Minor things:

nichollsh commented 1 month ago

That makes sense - I guess this is covered by #167 ?

nichollsh commented 1 month ago

Thanks both!

lsoucasse commented 1 month ago

That makes sense - I guess this is covered by #167 ?

Yes!