Skip to content
Snippets Groups Projects
Commit 2afe8fea authored by Nico's avatar Nico Committed by BaM
Browse files

Merge branch 'NewFeature_RescaleReactor' into 'master'

New feature rescale reactor

# ChangeLog
## Bugs correction
### Reactor.cxx
Evolution between last time step before end of cycle and end of cycle was not done. Bug corrected thanks to @Fanny and @nicolas.thiolliere
### Scenario.cxx
Display of CLASS presentation in terminal was destroyed (missing spaces)

## ReactorScheduler

### Description
This class replace CLASSFuel and CLASSFuelPlan. Il allows to change PhysicsModel/EvolutionData, Burnup, power and mass of a reactor during time.

### Usage
```c
	Reactor* PWR_UOX = new Reactor(gCLASS->GetLog(),	//Log
							   STD900,				// Data base
							   Stock,			// Connected Backend facility (here the Storage "Stock" previously declared)
							   StartingTime,		// Starting time
							   LifeTime,			// time of reactor life time
							   Power_CP0,			// Power
							   HMMass,// HM mass
							   BurnUp,				// BurnUp
							   0.8);			// Load Factor

	double CycleTime = BurnUp *1e9 /Power_CP0 *HMMass * 24 * 3600;
	PWR_UOX->AddScheduleEntry(StartingTime + 1*CycleTime, STD900, BurnUp,2*Power_CP0  ,2*HMMass );
	PWR_UOX->SetFabricationPlant(FP_MOX); // Add a Fabrication plant if you decide to change for a PhysicsModel
	PWR_UOX->AddScheduleEntry(2010*year, PHYMOD, 1.5*BurnUp,1*Power_CP0,1.1*HMMass )	;
	gCLASS->AddReactor(PWR_UOX);//Add this reactor to the scenario

```

See merge request !4
parents 0c90ef62 4538d014
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment