|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
The global OPAL structure. More...
#include <OpalData.h>
Classes | |
| struct | ClearReference |
| Clear Reference. More... | |
Public Types | |
| enum class | OpenMode : unsigned short { UNDEFINED , WRITE , APPEND } |
| Enum for writing to files. More... | |
Public Member Functions | |
| ~OpalData () | |
| void | reset () |
| reset object for consecutive runs | |
| void | apply (const ObjectFunction &) |
| Apply a function to all objects. | |
| void | create (Object *newObject) |
| Create new object. | |
| void | define (Object *newObject) |
| Define a new object. | |
| void | erase (const std::string &name) |
| Delete existing entry. | |
| Object * | find (const std::string &name) |
| Find entry. | |
| double | getP0 () const |
| Return value of global reference momentum. | |
| void | makeDirty (Object *object) |
| Invalidate expressions. | |
| void | printNames (std::ostream &stream, const std::string &pattern) |
| Print all objects. | |
| std::vector< std::string > | getAllNames () const |
| Get a list of all objects. | |
| void | registerTable (Table *t) |
| Register table. | |
| void | unregisterTable (Table *t) |
| Unregister table. | |
| void | registerExpression (AttributeBase *) |
| Register expression. | |
| void | unregisterExpression (AttributeBase *) |
| Unregister expression. | |
| void | setP0 (ValueDefinition *p0) |
| Set the global momentum. | |
| void | storeTitle (const std::string &) |
| Store the page title. | |
| void | printTitle (std::ostream &) |
| Print the page title. | |
| std::string | getTitle () |
| Get the title string. | |
| void | update () |
| Update all objects. | |
| std::map< std::string, std::string > | getVariableData () |
| std::vector< std::string > | getVariableNames () |
| bool | isInOPALCyclMode () |
| bool | isInOPALTMode () |
| bool | isOptimizerRun () |
| void | setInOPALCyclMode () |
| void | setInOPALTMode () |
| void | setOptimizerFlag () |
| bool | isInPrepState () |
| void | setInPrepState (bool state) |
| bool | hasPriorTrack () |
| true if in follow-up track | |
| void | setPriorTrack (const bool &value=true) |
| true if in follow-up track | |
| bool | inRestartRun () |
| true if we do a restart run | |
| void | setRestartRun (const bool &value=true) |
| set OPAL in restart mode | |
| void | setRestartStep (int s) |
| store the location where to restart | |
| int | getRestartStep () |
| get the step where to restart | |
| std::string | getAuxiliaryOutputDirectory () const |
| get the name of the the additional data directory | |
| std::string | getInputFn () |
| get opals input filename | |
| std::string | getInputBasename () |
| get input file name without extension | |
| void | storeInputFn (const std::string &fn) |
| store opals input filename | |
| void | checkAndAddOutputFileName (const std::string &outfn) |
| checks the output file names of all items to avoid duplicates | |
| std::string | getRestartFileName () |
| get opals restart h5 format filename | |
| void | setRestartFileName (std::string s) |
| store opals restart h5 format filename | |
| bool | hasRestartFile () |
| true if we do a restart from specified h5 file | |
| void | setRestartDumpFreq (const int &N) |
| set the dump frequency as found in restart file | |
| int | getRestartDumpFreq () const |
| get the dump frequency as found in restart file | |
| void | setOpenMode (OpenMode openMode) |
| OpenMode | getOpenMode () const |
| void | setLastStep (const int &step) |
| set the last step in a run for possible follow-up run | |
| int | getLastStep () const |
| get the last step from a possible previous run | |
| bool | hasBunchAllocated () |
| true if we already allocated a ParticleBunch object | |
| void | bunchIsAllocated () |
| PartBunchBase< double, 3 > * | getPartBunch () |
| void | setPartBunch (PartBunchBase< double, 3 > *p) |
| bool | hasDataSinkAllocated () |
| true if we already allocated a DataSink object | |
| DataSink * | getDataSink () |
| void | setDataSink (DataSink *s) |
| void | setGlobalPhaseShift (double shift) |
| units: (sec) | |
| double | getGlobalPhaseShift () |
| units: (sec) | |
| void | setGlobalGeometry (BoundaryGeometry *bg) |
| BoundaryGeometry * | getGlobalGeometry () |
| bool | hasGlobalGeometry () |
| void | setMaxPhase (std::string elName, double phi) |
| std::vector< MaxPhasesT >::iterator | getFirstMaxPhases () |
| std::vector< MaxPhasesT >::iterator | getLastMaxPhases () |
| int | getNumberOfMaxPhases () |
| void | addEnergyData (double spos, double ekin) |
| energyEvolution_t::iterator | getFirstEnergyData () |
| energyEvolution_t::iterator | getLastEnergyData () |
| unsigned long long | getMaxTrackSteps () |
| void | setMaxTrackSteps (unsigned long long s) |
| void | incMaxTrackSteps (unsigned long long s) |
| void | addProblemCharacteristicValue (const std::string &name, unsigned int value) |
| const std::map< std::string, unsigned int > & | getProblemCharacteristicValues () const |
| void | storeArguments (int argc, char *argv[]) |
| std::vector< std::string > | getArguments () |
Static Public Member Functions | |
| static OpalData * | getInstance () |
| static void | deleteInstance () |
| static void | stashInstance () |
| static OpalData * | popInstance () |
Private Member Functions | |
| OpalData () | |
| OpalData (const OpalData &) | |
| void | operator= (const OpalData &) |
Private Attributes | |
| struct OpalDataImpl * | p |
Static Private Attributes | |
| static bool | isInstantiated = false |
| static OpalData * | instance = nullptr |
| static std::stack< OpalData * > | stashedInstances |
The global OPAL structure.
Definition at line 49 of file OpalData.h.
|
strong |
Enum for writing to files.
| Enumerator | |
|---|---|
| UNDEFINED | |
| WRITE | |
| APPEND | |
Definition at line 64 of file OpalData.h.
| OpalData::~OpalData | ( | ) |
Definition at line 252 of file OpalData.cpp.
References p.
|
private |
Definition at line 248 of file OpalData.cpp.
References p.
Referenced by getInstance(), OpalData(), operator=(), and popInstance().
|
private |
| void OpalData::addEnergyData | ( | double | spos, |
| double | ekin ) |
Definition at line 410 of file OpalData.cpp.
References p.
| void OpalData::addProblemCharacteristicValue | ( | const std::string & | name, |
| unsigned int | value ) |
Definition at line 756 of file OpalData.cpp.
Referenced by Distribution::createOpalCycl(), Distribution::createOpalT(), Distribution::doRestartOpalCycl(), and Distribution::doRestartOpalT().
| void OpalData::apply | ( | const ObjectFunction & | fun | ) |
Apply a function to all objects.
Definition at line 469 of file OpalData.cpp.
References p.
Referenced by Line::parse(), and Sequence::storeLine().
| void OpalData::bunchIsAllocated | ( | ) |
Definition at line 369 of file OpalData.cpp.
References p.
| void OpalData::checkAndAddOutputFileName | ( | const std::string & | outfn | ) |
checks the output file names of all items to avoid duplicates
Definition at line 680 of file OpalData.cpp.
References hasBunchAllocated(), and p.
Referenced by LossDataSink::LossDataSink(), and PeakFinder::save().
| void OpalData::create | ( | Object * | newObject | ) |
Create new object.
Definition at line 476 of file OpalData.cpp.
References Object::getOpalName(), name, and p.
Referenced by OpalMarker::OpalMarker(), RealConstant::RealConstant(), RealVariable::RealVariable(), and StringConstant::StringConstant().
| void OpalData::define | ( | Object * | newObject | ) |
Define a new object.
Definition at line 489 of file OpalData.cpp.
References Object::canReplaceBy(), endl(), erase(), Object::getOpalName(), Options::info, INFOMSG, Object::isBuiltin(), Table::isDependent(), name, p, Object::setDirty(), and setP0().
Referenced by Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), Distribution::Distribution(), OpalFilter::OpalFilter(), OpalTrimCoil::OpalTrimCoil(), OpalWake::OpalWake(), OpalParser::parseAssign(), OpalParser::parseDefine(), OpalParser::parseMacro(), SequenceParser::parseMember(), ParticleMatterInteraction::ParticleMatterInteraction(), PyOpal::PyDistributionNS::registerDistribution(), PyOpal::PyFieldSolverNS::registerFieldSolver(), PyOpal::PyLine_< TBeamline< FlaggedElmPtr > >::registerObject(), and PyOpal::PyOpalObjectNS::PyOpalObject< C >::registerObject().
|
static |
Definition at line 206 of file OpalData.cpp.
References instance, and isInstantiated.
Referenced by opalMain(), popInstance(), and run_opal().
| void OpalData::erase | ( | const std::string & | name | ) |
Delete existing entry.
Definition at line 554 of file OpalData.cpp.
References Object::getParent(), name, p, and Object::setParent().
Referenced by define().
| Object * OpalData::find | ( | const std::string & | name | ) |
Find entry.
Definition at line 571 of file OpalData.cpp.
Referenced by Option::execute(), Expressions::ARefExpr< T >::fill(), Expressions::SRefAttr< T >::fill(), Expressions::SRefExpr< T >::fill(), Beam::find(), BeamSequence::find(), BoundaryGeometry::find(), Distribution::find(), Element::find(), FieldSolver::find(), OpalFilter::find(), OpalParser::find(), OpalSample::find(), OpalTrimCoil::find(), OpalWake::find(), ParticleMatterInteraction::find(), Table::find(), getVariableData(), getVariableNames(), LineTemplate::makeInstance(), SequenceTemplate::makeInstance(), opalMain(), OpalParser::parseAssign(), Line::parseList(), Expressions::parseStringValue(), ParallelTTracker::setOptionalVariables(), and Sequence::updateList().
| std::vector< std::string > OpalData::getAllNames | ( | ) | const |
Get a list of all objects.
Definition at line 615 of file OpalData.cpp.
Referenced by PyOpal::PyParser::list_objects().
| std::vector< std::string > OpalData::getArguments | ( | ) |
Definition at line 775 of file OpalData.cpp.
References p.
| std::string OpalData::getAuxiliaryOutputDirectory | ( | ) | const |
get the name of the the additional data directory
Definition at line 666 of file OpalData.cpp.
Referenced by AmrYtWriter::AmrYtWriter(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Bend2D::calculateRefTrajectory(), BoundaryGeometry::computeMeshVoxelization(), FieldWriter::dumpField(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbit(), Bend2D::getOutline(), SigmaGenerator::initialize(), _Fieldmap::lowResolutionWarning(), SigmaGenerator::match(), opalMain(), LaserProfile::sampleDist(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), LaserProfile::saveData(), LaserProfile::saveHistogram(), IndexMap::saveSDDS(), RBend3D::trackRefParticleThrough(), SigmaGenerator::updateInitialSigma(), SigmaGenerator::updateSigma(), MeshGenerator::write(), _Fieldmap::write3DField(), DumpEMFields::writeFieldThis(), DumpFields::writeFieldThis(), FlexibleCollimator::writeHolesAndQuadtree(), SigmaGenerator::writeOrbitOutput_m(), Distribution::writeOutFileHeader(), and Cyclotron::writeOutputFieldFiles().
| DataSink * OpalData::getDataSink | ( | ) |
Definition at line 390 of file OpalData.cpp.
References p.
| energyEvolution_t::iterator OpalData::getFirstEnergyData | ( | ) |
Definition at line 414 of file OpalData.cpp.
References p.
| std::vector< MaxPhasesT >::iterator OpalData::getFirstMaxPhases | ( | ) |
Definition at line 398 of file OpalData.cpp.
References p.
Referenced by ParallelTTracker::restoreCavityPhases(), and H5PartWrapper::storeCavityInformation().
| BoundaryGeometry * OpalData::getGlobalGeometry | ( | ) |
Definition at line 461 of file OpalData.cpp.
References p.
Referenced by ParallelCyclotronTracker::execute(), and FieldSolver::initSolver().
| double OpalData::getGlobalPhaseShift | ( | ) |
units: (sec)
units: (sec)
Definition at line 452 of file OpalData.cpp.
References p.
Referenced by Distribution::doRestartOpalT(), ParallelTTracker::execute(), and H5PartWrapperForPT::writeHeader().
| std::string OpalData::getInputBasename | ( | ) |
get input file name without extension
Definition at line 674 of file OpalData.cpp.
References p.
Referenced by ThickTracker::advanceDispersion_m(), AmrYtWriter::AmrYtWriter(), Bend2D::calculateRefTrajectory(), FieldWriter::dumpField(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbit(), Bend2D::getOutline(), DataSink::init(), DataSink::initMultiBunchDump(), ParallelCyclotronTracker::initTrackOrbitFile(), opalMain(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), IndexMap::saveSDDS(), RBend3D::trackRefParticleThrough(), ThickTracker::write_m(), Distribution::writeOutFileHeader(), and Monitor::writeStatistics().
| std::string OpalData::getInputFn | ( | ) |
get opals input filename
Definition at line 670 of file OpalData.cpp.
References p.
Referenced by GridLBalWriter::fillHeader(), LBalWriter::fillHeader(), MemoryWriter::fillHeader(), MultiBunchDump::fillHeader(), StatWriter::fillHeader(), MemoryProfiler::header(), and AmrMultiGrid::writeSDDSHeader_m().
|
static |
Definition at line 196 of file OpalData.cpp.
References instance, isInstantiated, and OpalData().
Referenced by Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), ScatteringPhysics::addBackToBunch(), SDDSWriter::addDefaultParameters(), Distribution::adjustPhaseSpace(), ThickTracker::advanceDispersion_m(), AmrYtWriter::AmrYtWriter(), BeamStrippingPhysics::apply(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Monitor::applyToReferenceParticle(), Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), MultiBunchHandler::calcBunchBeamParameters(), Bend2D::calculateRefTrajectory(), _Fieldmap::checkMap(), Vacuum::checkPoint(), ScatteringPhysics::computeInteraction(), BoundaryGeometry::computeMeshVoxelization(), ScatteringPhysics::copyFromBunch(), Distribution::createOpalCycl(), Distribution::createOpalT(), Distribution::Distribution(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), ParallelCyclotronTracker::dumpAngle(), FieldWriter::dumpField(), Help::execute(), IfStatement::execute(), OpalParser::execute(), OptimizeCmd::execute(), Option::execute(), ParallelCyclotronTracker::execute(), ParallelTTracker::execute(), SampleCmd::execute(), Select::execute(), ThickTracker::execute(), Title::execute(), WhileStatement::execute(), Expressions::ARefExpr< T >::fill(), Expressions::SRefAttr< T >::fill(), Expressions::SRefExpr< T >::fill(), ElementPositionWriter::fillHeader(), GridLBalWriter::fillHeader(), LBalWriter::fillHeader(), MemoryWriter::fillHeader(), MultiBunchDump::fillHeader(), StatWriter::fillHeader(), Beam::find(), BeamSequence::find(), BoundaryGeometry::find(), Distribution::find(), Element::find(), FieldSolver::find(), OpalFilter::find(), OpalParser::find(), OpalSample::find(), OpalTrimCoil::find(), OpalWake::find(), ParticleMatterInteraction::find(), Table::find(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbit(), Expressions::getEkin(), PartBunchBase< double, 3 >::getMassPerParticle(), _FM3DDynamic::getOnaxisEz(), Bend2D::getOutline(), CavityAutophaser::getPhaseAtMaxEnergy(), Attributes::getString(), Attributes::getStringArray(), getVariableData(), getVariableNames(), H5PartWrapperForPT::H5PartWrapperForPT(), MemoryProfiler::header(), DataSink::init(), ParallelCyclotronTracker::initDistInGlobalFrame(), Monitor::initialise(), SigmaGenerator::initialize(), ParallelCyclotronTracker::initializeTracking_m(), DataSink::initMultiBunchDump(), FieldSolver::initSolver(), ParallelCyclotronTracker::initTrackOrbitFile(), OrbitThreader::integrate(), DistributionMoments::isParticleExcluded(), PyOpal::PyParser::list_objects(), LossDataSink::LossDataSink(), _Fieldmap::lowResolutionWarning(), LineTemplate::makeInstance(), SequenceTemplate::makeInstance(), SigmaGenerator::match(), MultiBunchHandler::MultiBunchHandler(), OpalFilter::OpalFilter(), opalMain(), OpalMarker::OpalMarker(), OpalTrimCoil::OpalTrimCoil(), OpalWake::OpalWake(), OrbitThreader::OrbitThreader(), Line::parse(), OpalParser::parse(), SequenceParser::parse(), OpalParser::parseAssign(), OpalParser::parseDefine(), Line::parseList(), OpalParser::parseMacro(), SequenceParser::parseMember(), Expressions::parseRelation(), Expressions::parseStringValue(), ParticleMatterInteraction::ParticleMatterInteraction(), Distribution::printInfo(), H5PartWrapperForPC::readHeader(), H5PartWrapperForPT::readHeader(), RealConstant::RealConstant(), RealVariable::RealVariable(), PyOpal::PyDistributionNS::registerDistribution(), PyOpal::PyFieldSolverNS::registerFieldSolver(), PyOpal::PyLine_< TBeamline< FlaggedElmPtr > >::registerObject(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::registerObject(), ParallelTTracker::restoreCavityPhases(), OptimizeCmd::run(), run_opal(), LaserProfile::sampleDist(), Expressions::SAutomatic< T >::SAutomatic(), Expressions::SAutomatic< T >::SAutomatic(), LossDataSink::save(), PeakFinder::save(), PluginElement::save(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), LaserProfile::saveData(), LaserProfile::saveHistogram(), IndexMap::saveSDDS(), ParallelTTracker::setOptionalVariables(), MultiBunchHandler::setRadiusTurns(), PyOpal::PyTrackRunNS::setRunName(), PartBunchBase< T, Dim >::setSolver(), ScatteringPhysics::setTimeStepForLeavingParticles(), OpalSimulation::setupSimulation(), H5PartWrapper::storeCavityInformation(), Sequence::storeLine(), StringConstant::StringConstant(), Table::Table(), Track::Track(), RBend3D::trackRefParticleThrough(), TrackRun::TrackRun(), TrackRun::TrackRun(), OpalHKicker::update(), OpalKicker::update(), OpalMultipole::update(), OpalOctupole::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalSBend::update(), OpalSextupole::update(), OpalSolenoid::update(), OpalVKicker::update(), SigmaGenerator::updateInitialSigma(), Sequence::updateList(), AmrPartBunch::updateLorentzFactor(), SigmaGenerator::updateSigma(), ParallelCyclotronTracker::visitCyclotron(), MeshGenerator::write(), StatWriter::write(), _Fieldmap::write3DField(), ThickTracker::write_m(), DumpEMFields::writeFieldThis(), DumpFields::writeFieldThis(), H5PartWrapperForPT::writeHeader(), FlexibleCollimator::writeHolesAndQuadtree(), SigmaGenerator::writeOrbitOutput_m(), Distribution::writeOutFileHeader(), Cyclotron::writeOutputFieldFiles(), AmrYtWriter::writeParticles_m(), AmrMultiGrid::writeSDDSHeader_m(), Monitor::writeStatistics(), Expressions::AAutomatic< T >::~AAutomatic(), Expressions::SAutomatic< T >::~SAutomatic(), and Table::~Table().
| energyEvolution_t::iterator OpalData::getLastEnergyData | ( | ) |
Definition at line 418 of file OpalData.cpp.
References p.
| std::vector< MaxPhasesT >::iterator OpalData::getLastMaxPhases | ( | ) |
Definition at line 402 of file OpalData.cpp.
References p.
Referenced by ParallelTTracker::restoreCavityPhases(), and H5PartWrapper::storeCavityInformation().
| int OpalData::getLastStep | ( | ) | const |
get the last step from a possible previous run
Definition at line 361 of file OpalData.cpp.
References p.
| unsigned long long OpalData::getMaxTrackSteps | ( | ) |
Definition at line 236 of file OpalData.cpp.
References p.
| int OpalData::getNumberOfMaxPhases | ( | ) |
Definition at line 406 of file OpalData.cpp.
References p.
Referenced by H5PartWrapper::storeCavityInformation().
| OpalData::OpenMode OpalData::getOpenMode | ( | ) | const |
Definition at line 353 of file OpalData.cpp.
References p.
Referenced by Monitor::applyToReferenceParticle(), LossDataSink::save(), and PluginElement::save().
| double OpalData::getP0 | ( | ) | const |
Return value of global reference momentum.
Definition at line 575 of file OpalData.cpp.
References Units::GeV2eV, and p.
Referenced by OpalHKicker::update(), OpalKicker::update(), OpalMultipole::update(), OpalOctupole::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalSBend::update(), OpalSextupole::update(), OpalSolenoid::update(), and OpalVKicker::update().
| PartBunchBase< double, 3 > * OpalData::getPartBunch | ( | ) |
Definition at line 377 of file OpalData.cpp.
References p.
Referenced by Expressions::getEkin(), and Track::Track().
| const std::map< std::string, unsigned int > & OpalData::getProblemCharacteristicValues | ( | ) | const |
Definition at line 764 of file OpalData.cpp.
References p.
| int OpalData::getRestartDumpFreq | ( | ) | const |
get the dump frequency as found in restart file
Definition at line 345 of file OpalData.cpp.
References p.
| std::string OpalData::getRestartFileName | ( | ) |
| int OpalData::getRestartStep | ( | ) |
| std::string OpalData::getTitle | ( | ) |
| std::map< std::string, std::string > OpalData::getVariableData | ( | ) |
Definition at line 716 of file OpalData.cpp.
References find(), getInstance(), RealVariable::getReal(), StringConstant::getString(), and getVariableNames().
Referenced by OptimizeCmd::run().
| std::vector< std::string > OpalData::getVariableNames | ( | ) |
Definition at line 736 of file OpalData.cpp.
References find(), Object::getCategory(), getInstance(), Object::isBuiltin(), and p.
Referenced by getVariableData().
| bool OpalData::hasBunchAllocated | ( | ) |
true if we already allocated a ParticleBunch object
Definition at line 365 of file OpalData.cpp.
References p.
Referenced by checkAndAddOutputFileName().
| bool OpalData::hasDataSinkAllocated | ( | ) |
true if we already allocated a DataSink object
Definition at line 381 of file OpalData.cpp.
References p.
| bool OpalData::hasGlobalGeometry | ( | ) |
Definition at line 465 of file OpalData.cpp.
References p.
| bool OpalData::hasPriorTrack | ( | ) |
| bool OpalData::hasRestartFile | ( | ) |
true if we do a restart from specified h5 file
Definition at line 337 of file OpalData.cpp.
References p.
| void OpalData::incMaxTrackSteps | ( | unsigned long long | s | ) |
Definition at line 244 of file OpalData.cpp.
References p.
| bool OpalData::inRestartRun | ( | ) |
true if we do a restart run
Definition at line 312 of file OpalData.cpp.
References p.
Referenced by DataSink::initMultiBunchDump(), and opalMain().
| bool OpalData::isInOPALCyclMode | ( | ) |
Definition at line 272 of file OpalData.cpp.
References p.
Referenced by DistributionMoments::isParticleExcluded(), and AmrMultiGrid::writeSDDSHeader_m().
| bool OpalData::isInOPALTMode | ( | ) |
Definition at line 276 of file OpalData.cpp.
References p.
Referenced by AmrMultiGrid::writeSDDSHeader_m().
| bool OpalData::isInPrepState | ( | ) |
Definition at line 296 of file OpalData.cpp.
References p.
| bool OpalData::isOptimizerRun | ( | ) |
Definition at line 280 of file OpalData.cpp.
References p.
| void OpalData::makeDirty | ( | Object * | object | ) |
Invalidate expressions.
Definition at line 579 of file OpalData.cpp.
References p, and Object::setDirty().
Referenced by SequenceParser::parse(), and OpalParser::parseAssign().
|
private |
|
static |
Definition at line 223 of file OpalData.cpp.
References deleteInstance(), instance, isInstantiated, OpalData(), and stashedInstances.
Referenced by OptimizeCmd::popEnvironment(), and SampleCmd::popEnvironment().
| void OpalData::printNames | ( | std::ostream & | stream, |
| const std::string & | pattern ) |
Print all objects.
Definition at line 584 of file OpalData.cpp.
References RegularExpression::match(), name, and p.
| void OpalData::printTitle | ( | std::ostream & | os | ) |
| void OpalData::registerExpression | ( | AttributeBase * | expr | ) |
Register expression.
Definition at line 638 of file OpalData.cpp.
References p.
Referenced by Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), Expressions::SAutomatic< T >::SAutomatic(), and Expressions::SAutomatic< T >::SAutomatic().
| void OpalData::registerTable | ( | Table * | t | ) |
Register table.
Definition at line 626 of file OpalData.cpp.
References p.
Referenced by Table::Table().
| void OpalData::reset | ( | ) |
| void OpalData::setDataSink | ( | DataSink * | s | ) |
Definition at line 385 of file OpalData.cpp.
References p.
| void OpalData::setGlobalGeometry | ( | BoundaryGeometry * | bg | ) |
Definition at line 457 of file OpalData.cpp.
References p.
| void OpalData::setGlobalPhaseShift | ( | double | shift | ) |
units: (sec)
units: (sec)
Definition at line 447 of file OpalData.cpp.
References p.
Referenced by ParallelTTracker::execute(), ThickTracker::execute(), and H5PartWrapperForPT::readHeader().
| void OpalData::setInOPALCyclMode | ( | ) |
Definition at line 284 of file OpalData.cpp.
References p.
| void OpalData::setInOPALTMode | ( | ) |
Definition at line 288 of file OpalData.cpp.
References p.
| void OpalData::setInPrepState | ( | bool | state | ) |
Definition at line 300 of file OpalData.cpp.
References p.
Referenced by ParallelTTracker::execute(), and ThickTracker::execute().
| void OpalData::setLastStep | ( | const int & | step | ) |
set the last step in a run for possible follow-up run
Definition at line 357 of file OpalData.cpp.
References p.
| void OpalData::setMaxPhase | ( | std::string | elName, |
| double | phi ) |
Definition at line 394 of file OpalData.cpp.
References p.
Referenced by CavityAutophaser::getPhaseAtMaxEnergy().
| void OpalData::setMaxTrackSteps | ( | unsigned long long | s | ) |
Definition at line 240 of file OpalData.cpp.
References p.
| void OpalData::setOpenMode | ( | OpenMode | openMode | ) |
Definition at line 349 of file OpalData.cpp.
References p.
Referenced by ParallelCyclotronTracker::execute(), ParallelTTracker::execute(), ThickTracker::execute(), and LossDataSink::LossDataSink().
| void OpalData::setOptimizerFlag | ( | ) |
Definition at line 292 of file OpalData.cpp.
References p.
Referenced by OpalSimulation::setupSimulation().
| void OpalData::setP0 | ( | ValueDefinition * | p0 | ) |
Set the global momentum.
Definition at line 646 of file OpalData.cpp.
References p.
Referenced by define(), and RealVariable::RealVariable().
| void OpalData::setPartBunch | ( | PartBunchBase< double, 3 > * | p | ) |
| void OpalData::setPriorTrack | ( | const bool & | value = true | ) |
true if in follow-up track
Definition at line 308 of file OpalData.cpp.
References p.
Referenced by ParallelTTracker::execute().
| void OpalData::setRestartDumpFreq | ( | const int & | N | ) |
set the dump frequency as found in restart file
Definition at line 341 of file OpalData.cpp.
References p.
Referenced by H5PartWrapperForPC::readHeader(), and H5PartWrapperForPT::readHeader().
| void OpalData::setRestartFileName | ( | std::string | s | ) |
store opals restart h5 format filename
Definition at line 332 of file OpalData.cpp.
References p.
Referenced by opalMain(), and run_opal().
| void OpalData::setRestartRun | ( | const bool & | value = true | ) |
set OPAL in restart mode
Definition at line 316 of file OpalData.cpp.
References p.
Referenced by opalMain(), and run_opal().
| void OpalData::setRestartStep | ( | int | s | ) |
store the location where to restart
Definition at line 320 of file OpalData.cpp.
References p.
Referenced by H5PartWrapperForPT::H5PartWrapperForPT(), opalMain(), and run_opal().
|
static |
Definition at line 212 of file OpalData.cpp.
References instance, isInstantiated, MAX_NUM_INSTANCES, and stashedInstances.
Referenced by OptimizeCmd::stashEnvironment(), and SampleCmd::stashEnvironment().
| void OpalData::storeArguments | ( | int | argc, |
| char * | argv[] ) |
| void OpalData::storeInputFn | ( | const std::string & | fn | ) |
store opals input filename
Definition at line 654 of file OpalData.cpp.
References p.
Referenced by opalMain(), run_opal(), and PyOpal::PyTrackRunNS::setRunName().
| void OpalData::storeTitle | ( | const std::string & | title | ) |
Store the page title.
Definition at line 650 of file OpalData.cpp.
References p.
Referenced by Title::execute().
| void OpalData::unregisterExpression | ( | AttributeBase * | expr | ) |
Unregister expression.
Definition at line 642 of file OpalData.cpp.
References p.
Referenced by Expressions::AAutomatic< T >::~AAutomatic(), and Expressions::SAutomatic< T >::~SAutomatic().
| void OpalData::unregisterTable | ( | Table * | t | ) |
Unregister table.
Definition at line 630 of file OpalData.cpp.
References p.
Referenced by Table::~Table().
| void OpalData::update | ( | ) |
Update all objects.
Definition at line 690 of file OpalData.cpp.
References p.
Referenced by IfStatement::execute(), OpalParser::execute(), and WhileStatement::execute().
|
staticprivate |
Definition at line 275 of file OpalData.h.
Referenced by deleteInstance(), getInstance(), popInstance(), and stashInstance().
|
staticprivate |
Definition at line 274 of file OpalData.h.
Referenced by deleteInstance(), getInstance(), popInstance(), and stashInstance().
|
private |
Definition at line 285 of file OpalData.h.
Referenced by addEnergyData(), addProblemCharacteristicValue(), apply(), bunchIsAllocated(), checkAndAddOutputFileName(), create(), define(), erase(), find(), getAllNames(), getArguments(), getDataSink(), getFirstEnergyData(), getFirstMaxPhases(), getGlobalGeometry(), getGlobalPhaseShift(), getInputBasename(), getInputFn(), getLastEnergyData(), getLastMaxPhases(), getLastStep(), getMaxTrackSteps(), getNumberOfMaxPhases(), getOpenMode(), getP0(), getPartBunch(), getProblemCharacteristicValues(), getRestartDumpFreq(), getRestartFileName(), getRestartStep(), getTitle(), getVariableNames(), hasBunchAllocated(), hasDataSinkAllocated(), hasGlobalGeometry(), hasPriorTrack(), hasRestartFile(), incMaxTrackSteps(), inRestartRun(), isInOPALCyclMode(), isInOPALTMode(), isInPrepState(), isOptimizerRun(), makeDirty(), OpalData(), printNames(), printTitle(), registerExpression(), registerTable(), reset(), setDataSink(), setGlobalGeometry(), setGlobalPhaseShift(), setInOPALCyclMode(), setInOPALTMode(), setInPrepState(), setLastStep(), setMaxPhase(), setMaxTrackSteps(), setOpenMode(), setOptimizerFlag(), setP0(), setPartBunch(), setPriorTrack(), setRestartDumpFreq(), setRestartFileName(), setRestartRun(), setRestartStep(), storeArguments(), storeInputFn(), storeTitle(), unregisterExpression(), unregisterTable(), update(), and ~OpalData().
|
staticprivate |
Definition at line 276 of file OpalData.h.
Referenced by popInstance(), and stashInstance().