Package gaiasimu.universe.source.stellar

Examples of gaiasimu.universe.source.stellar.ExoPlanetPhysicalParameters


   
    try {

      // Some shortcuts
      ExoPlanet planet = model.getPlanets().get(0);
      ExoPlanetPhysicalParameters phys = (ExoPlanetPhysicalParameters) planet.getPhysParam();
      OrbitalParams orb = ((ComponentAstrometry) planet.getAstrometry()).getOrbitalParams();
      StellarAstrometry astro = model.getAstrometry();
     
      // Change astrometry
      model.setAstrometry(alpha, delta, parallax, muAlphaStar, muDelta, astro.getRadialVelocity());
     
      // Modify planet
      double mSinI = phys.getMass() * Math.sin(orb.inclination);
      phys.setMass(mSinI / Math.sin(newIncl));
      orb.inclination = newIncl;
      orb.nodeangle = nodeAngle;
      orb.omega2 = omega2;
      orb.timeperiastron = timePeri;
     
View Full Code Here


    double magMV2 = 32.58, MBol2 = magMV2-4; //Mag MV from Baraffe models.
    double vSini = 0.0, vmi2 = 9.9999;
   
    // Initialize ComponentAstrometry pointing to the primary and then correct with setCompanion()
    ComponentAstrometry compAstrom = new ComponentAstrometry(planets.size(), orbParam);
    ExoPlanetPhysicalParameters compPhys =
      new ExoPlanetPhysicalParameters(tEq, plRadius, vSini, massM2, MBol2, star.getStarPhysicalParams());
   
    ComponentPhotometry compPhot =
      new ComponentPhotometry(compAstrom, magMV2, distance, vmi2, star.getPhotometry().getAbsV(), star.getPhotometry().getExtinctionCurve());
   
    ExoPlanet planet = new ExoPlanet(star.getRootId(), compPhot, compAstrom, compPhys);
    compPhot.setTargetAstroSource(planet);
    compAstrom.setTargetAstroSource(planet);
    compPhys.setTargetAstroSource(planet);
   
    return this.addPlanet(planet);
   
  }
View Full Code Here

    double magMV2 = 32.58, MBol2 = magMV2-4; //Mag MV from Baraffe models.
    double vSini = 0.0, vmi2 = 9.9999;
   
    // Initialize ComponentAstrometry pointing to the primary and then correct with setCompanion()
    ComponentAstrometry compAstrom = new ComponentAstrometry(index, orbParam);
    ExoPlanetPhysicalParameters compPhys =
      new ExoPlanetPhysicalParameters(tEq, plRadius, vSini, massM2, MBol2, star.getStarPhysicalParams());
   
    ComponentPhotometry compPhot =
      new ComponentPhotometry(compAstrom, magMV2, distance, vmi2, star.getPhotometry().getAbsV(), star.getPhotometry().getExtinctionCurve());
   
    ExoPlanet planet = new ExoPlanet(star.getRootId(), compPhot, compAstrom, compPhys);
    compPhot.setTargetAstroSource(planet);
    compAstrom.setTargetAstroSource(planet);
    compPhys.setTargetAstroSource(planet);
   
    return planet;
   
  }
View Full Code Here

    double magMV2 = 32.58, MBol2 = magMV2-4; //Mag MV from Baraffe models.
    double vSini2 = 0, vmi2 = 9.9999;

    // Initialize ComponentAstrometry pointing to the primary and then correct with setCompanion()
    ComponentAstrometry compAstrom = new ComponentAstrometry(compnb, orbParam);
    ExoPlanetPhysicalParameters compPhys = new ExoPlanetPhysicalParameters(
        tEqu2, plRadius, vSini2, massM2
        / GaiaParam.Nature.SUN_MASS* GaiaParam.Nature.JUPITER_MASS, MBol2, primaryPhys) ;
   
    ComponentPhotometry compPhot = new ComponentPhotometry(compAstrom, magMV2,
        distance, vmi2, absV, star.getPhotometry().getExtinctionCurve());

    StellarSource comp = new ExoPlanet(primaryID, compPhot, compAstrom, compPhys);
    compPhot.setTargetAstroSource(comp);
    compAstrom.setTargetAstroSource(comp);
    compPhys.setTargetAstroSource(comp);

    components[compnb] = comp;

    // parameters for the stellar system itself
    StarSystem starSystem = new StarSystem(primaryID, components, astrom);
View Full Code Here

TOP

Related Classes of gaiasimu.universe.source.stellar.ExoPlanetPhysicalParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.