SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
polytrope.hpp File Reference
#include <array>
#include <concepts>
#include <expected>
#include <optional>
#include <string>
#include "serif/eos/models/polytropic.hpp"
#include "serif/model/stellar_model.hpp"
#include "serif/model/specifications/fixed_total_mass.hpp"
#include "serif/model/specifications/fixed_angular_momentum.hpp"
#include "serif/utils/laneemden/laneemden.hpp"
Include dependency graph for polytrope.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  serif::solver::seed::PolytropeOptions
 Numerical choices for an EOS-consistent spherical starting guess, separate from solver normalization. More...
 
struct  serif::solver::seed::RadialSeed
 Own a spherical physical profile and its first rotation estimate without changing the stellar model. More...
 

Namespaces

namespace  serif
 
namespace  serif::solver
 
namespace  serif::solver::seed
 

Functions

std::expected< RadialSeed, std::string > serif::solver::seed::make_polytropic_seed (const eos::models::Polytrope &equation_of_state, dimensions::MassValue mass, PolytropeOptions options={})
 Fix the EOS K and requested mass, solving for central density when n differs from three.
 
template<model::StellarModelType Model>
requires Model::template
contains_specification< model::FixedTotalMass > std::expected< RadialSeed, std::string > serif::solver::seed::make_polytropic_seed (const Model &model, PolytropeOptions options={})
 Read the authoritative EOS, mass and optional rotation prescription from a model.