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);