Nektar++
|
Functions | |
def | import_processors () |
def | make_xml_binder () |
Helpful utility functions #. More... | |
def | amara_parse_cellml (source, uri=None, prefixes=None) |
def | check_append_safety (elt) |
def | add_methods_to_amara () |
def | _rel_error_ok (self, value1, value2, tol) |
def eq(self, other): """Compare 2 units elements for equality. More... | |
def | equals (self, other) |
def | model (self) |
def | extract (self, check_equality=False) |
def | copy (self) |
def | description (self, force=False, cellml=False) |
def | get_units_by_name (self, uname) |
def | expand (self) |
def | is_base_unit (self) |
def | is_simple (self) |
def | get_multiplicative_factor (self) |
def | get_multiplier (self) |
def | get_offset (self) |
def | create_new (parent, name, bases, add_to_parent=False, standard=False) |
def | _based_on (self, units=None, prefix=None, exponent=None, multiplier=None, offset=None) |
def | simplify (self, other_units=None, other_exponent=1) |
def | _best_parent (self, other_units) |
def | quotient (self, other_units) |
def | dimensionally_equivalent (self, other_units) |
def | child_i (elt, i) |
def | _child1 (elt) |
def | varobj (self, ci_elt) |
def | vars_in (self, expr) |
def | same_tree (self, other, this=None) |
def | _xfer_complexity (self, new_elt) |
def | _adjust_complexity (self, old_elt, new_elt) |
def | classify_child_variables (self, elt, **kwargs) |
Variables | |
processors = None | |
list | __version__ = "$Revision: 25949 $"[11:-2] |
level | |
format | |
stream | |
WARNING_TRANSLATE_ERROR | |
dictionary | NSS |
VarTypes | |
CELLML_SUBSET_ELTS | |
BINDING_TIMES = Enum('static', 'dynamic') | |
list | units_name_counter = [0] |
new_units = dimensionless | |
print "Keeping d'less ref with m =",m,"from", print self.description(), if other_units: print "and",other_units.description() else: print More... | |
unit_elements = set(d.values()) | |
string | uname = u'___units_' + str(self.units_name_counter[0]) |
_cml_generated | |
xml_parent | |
def | units = self.model._get_units_obj(units) |
_u = units More... | |
string | msg = "Adding units " + units.name + " as " |
name | |
cellml | |
dictionary | attrs = {(u'cml:units', NSS[u'cml']): units.name} |
_cml_expanded | |
base_units | |
|
private |
Adjust ancestor complexity because old_elt changed to new_elt. The purpose of this method is to allow us to keep track of what the complexity of each expression node *was* prior to PE being performed. Thus we cannot just re-compute complexities, but must update values using the original complexities. If a variable definition is instantiated, then the complexity of the expression containing the lookup must be adjusted to reflect the additional expense of evaluating the defining expression. When this method is called, only new_elt is a child of self.
Definition at line 3923 of file pycml.py.
References CellMLToNektar.pycml.child_i().
|
private |
Convenience function for defining new units.
Definition at line 2940 of file pycml.py.
|
private |
Return a suitable parent for units formed from self and other_units. If either constituent is in a component, that component should be the parent, otherwise the model should be.
Definition at line 3143 of file pycml.py.
|
private |
Definition at line 3460 of file pycml.py.
References CellMLToNektar.pycml.child_i().
Referenced by CellMLToNektar.pycml.mathml_root._set_in_units(), CellMLToNektar.pycml.mathml_piecewise.evaluate(), CellMLToNektar.pycml.mathml_logbase.evaluate(), CellMLToNektar.pycml.mathml_degree.evaluate(), CellMLToNektar.pycml.mathml_apply.get_units(), and CellMLToNektar.pycml.mathml_apply.operator().
|
private |
def eq(self, other): """Compare 2 units elements for equality.
return self.equals(other) def ne(self, other): """Inverse of self.__eq__(other).""" return not self.__eq__(other)
Test if the relative difference of 2 values is within tol.
Definition at line 2627 of file pycml.py.
References tinysimd.abs().
|
private |
Transfer our complexity to the new element. PE is replacing us by a new element. If we are annotated with a complexity - the complexity of this expression prior to PE - then transfer the annotation to the new element.
Definition at line 3911 of file pycml.py.
def CellMLToNektar.pycml.add_methods_to_amara | ( | ) |
Definition at line 323 of file pycml.py.
References CellMLToNektar.pycml.add_methods_to_amara().
Referenced by CellMLToNektar.pycml.add_methods_to_amara().
def CellMLToNektar.pycml.amara_parse_cellml | ( | source, | |
uri = None , |
|||
prefixes = None |
|||
) |
Parse a CellML source with default rules and bindings.
Definition at line 191 of file pycml.py.
References CellMLToNektar.utilities.amara_parse(), and CellMLToNektar.pycml.make_xml_binder().
Referenced by CellMLToNektar.processors.ModelModifier._get_units_object(), CellMLToNektar.translators.SolverInfo.add_jacobian_matrix(), and CellMLToNektar.validator.CellMLValidator.validate().
def CellMLToNektar.pycml.check_append_safety | ( | elt | ) |
Check whether elt is safe to make a child, i.e. that it isn't already a child elsewhere.
Definition at line 197 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_lambda.create_new(), CellMLToNektar.pycml.mathml_apply.create_new(), and CellMLToNektar.pycml.mathml_piecewise.create_new().
def CellMLToNektar.pycml.child_i | ( | elt, | |
i | |||
) |
Definition at line 3449 of file pycml.py.
Referenced by CellMLToNektar.pycml._adjust_complexity(), CellMLToNektar.optimize.LinearityAnalyser._check_expr(), CellMLToNektar.pycml._child1(), CellMLToNektar.pycml.mathml_piecewise._get_binding_time(), CellMLToNektar.optimize.LinearityAnalyser._rearrange_expr(), CellMLToNektar.pycml.mathml_piecewise._reduce(), CellMLToNektar.pycml.mathml_piecewise._set_in_units(), CellMLToNektar.pycml.mathml_constructor._tree_complexity(), CellMLToNektar.optimize.LookupTableAnalyser.analyse_for_lut(), CellMLToNektar.pycml.mathml_piecewise.evaluate(), CellMLToNektar.pycml.mathml_piecewise.get_units(), CellMLToNektar.translators.CellMLTranslator.output_expr(), CellMLToNektar.translators.CellMLTranslator.output_piecewise(), and CellMLToNektar.pycml.mathml_piecewise.tree_complexity().
def CellMLToNektar.pycml.classify_child_variables | ( | self, | |
elt, | |||
** | kwargs | ||
) |
Classify variables in the given expression according to how they are used. In the process, compute and return a set of variables on which that expression depends. If dependencies_only then the variable classification will not be done, only dependencies will be analysed. This is useful for doing a 'light' re-analysis if the dependency set has been reduced; if the set has increased then the topological sort of equations may need to be redone. The function needs_special_treatment may be supplied to override the default recursion into sub-trees. It takes a single sub-tree as argument, and should either return the dependency set for that sub-tree, or None to use the default recursion. This is used when re-analysing dependencies after applying lookup tables, since table lookups only depend on the keying variable.
Definition at line 3965 of file pycml.py.
def CellMLToNektar.pycml.copy | ( | self | ) |
Return a new UnitsSet containing this cellml_units object. Used for interface compatibility with UnitsSet, where the method performs a shallow copy.
Definition at line 2663 of file pycml.py.
Referenced by Nektar::MetricFile.CalculateHash(), Nektar.CopyArray(), Nektar.CopyArrayN(), Nektar::SolverUtils::DriverParareal.CopyConvergedCheckPoints(), CppCommandLine.CppCommandLine(), Nektar::LinearSystem.FactorMatrix(), CellMLToNektar.pycml.mathml_apply.get_units(), CellMLToNektar.pycml.mathml_piecewise.get_units(), Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type >.Initialize(), Nektar::LibUtilities::SessionReader.LoadDoc(), Nektar::NekMatrix< DataType, StandardMatrixTag >.NekMatrix(), Nektar.NekMultiplyLowerTriangularMatrix(), Nektar.NekMultiplyUpperTriangularMatrix(), Nektar::NekMatrix< DataType, StandardMatrixTag >.operator=(), Nektar::StorageSmvBsr< T >.processBcoInput(), Nektar::NekMatrix< DataType, StandardMatrixTag >.ResizeDataArrayIfNeeded(), Nektar::LibUtilities::GaussPoints.v_CalculateDerivMatrix(), Nektar::FieldUtils::InputSemtex.v_Process(), Nektar::LibUtilities::FieldIOHdf5.v_Write(), and Nektar::FieldUtils::OutputTecplotBinary.WriteDoubleOrFloat().
|
static |
Create a new units definition element. It requires either a cellml_model or cellml_component element to be passed as the parent for the definition. If add_to_parent is set to true the new units element will be appended to parent's children. The bases parameter should be a list of dictionaries suitable for use as the keyword arguments of cellml_units._based_on. If the list is empty it will be defined as a base unit.
Definition at line 2912 of file pycml.py.
def CellMLToNektar.pycml.description | ( | self, | |
force = False , |
|||
cellml = False |
|||
) |
Return a human-readable name for these units. The name will be descriptive and based on the consituent <unit> elements, e.g. 'volt per second^2' By default, if these are user-defined units, then return self.name. Set force to True to override this behaviour. Set cellml to True to get a description that is also a valid CellML identifier.
Definition at line 2670 of file pycml.py.
References tinysimd.abs().
Referenced by main(), CellMLToNektar.translators.CellMLTranslator.output_assignment(), Nektar::LibUtilities::SessionReader.ParseCommandLineArguments(), and CellMLToNektar.pycml.cellml_units.uniquify_tuple().
def CellMLToNektar.pycml.dimensionally_equivalent | ( | self, | |
other_units | |||
) |
Return True iff other_units is dimensionally equivalent to self. As per appendix C.2.2, two units definitions have dimensional equivalence if, when each is recursively expanded and simplified into a product of base units, each has the same set of base units with the same exponent on corresponding base units.
Definition at line 3185 of file pycml.py.
References CellMLToNektar.pycml.simplify().
Referenced by CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator.generate_interface().
def CellMLToNektar.pycml.equals | ( | self, | |
other | |||
) |
Compare 2 units elements for equality. Two units are deemed equal if they are both dimensionally equivalent and have the same multiplicative factor (to within a relative tolerance of 10^-6). If both are simple units, they must also have the same offset.
Definition at line 2634 of file pycml.py.
References CellMLToNektar.pycml.get_multiplicative_factor(), and CellMLToNektar.pycml.get_offset().
Referenced by CellMLToNektar.processors.ModelModifier._convert_initial_value().
def CellMLToNektar.pycml.expand | ( | self | ) |
Expand to a product of powers of base units. Expand this units definition according to the algorithm given in appendix C.3.4 of the CellML spec. Caches and returns the resulting <units> object, which will be newly created if there are any changes made, or this object if not.
Definition at line 2730 of file pycml.py.
def CellMLToNektar.pycml.extract | ( | self, | |
check_equality = False |
|||
) |
Return these units. Used for interface compatibility with UnitsSet.
Definition at line 2657 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_units_mixin._add_units_conversion(), CellMLToNektar.pycml.mathml._ensure_units_exist(), CellMLToNektar.pycml.mathml_eq._set_in_units(), CellMLToNektar.processors.InterfaceGenerator._split_ode(), Geometry_Init(), Geometry_Init_Curved(), CellMLToNektar.pycml.mathml_cn.get_units(), and CellMLToNektar.pycml.mathml_ci.get_units().
def CellMLToNektar.pycml.get_multiplicative_factor | ( | self | ) |
Return the multiplicative factor of this units definition. The multiplicative factor of a units definition can be defined as the product of the multiplicative factors of its unit children.
Definition at line 2876 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_units_mixin_choose_nearest._set_in_units(), CellMLToNektar.pycml.mathml_units_mixin_equalise_operands._set_in_units(), CellMLToNektar.pycml.equals(), and CellMLToNektar.pycml.UnitsSet.extract().
def CellMLToNektar.pycml.get_multiplier | ( | self | ) |
Return the multiplier of this units definition. The multiplier of a units definition can be defined as the product of the multipliers of its unit children.
Definition at line 2888 of file pycml.py.
def CellMLToNektar.pycml.get_offset | ( | self | ) |
Return the offset associated with this units definition. If these are simple units, return the offset on our unit child. Otherwise, return 0.
Definition at line 2899 of file pycml.py.
References CellMLToNektar.pycml.get_offset().
Referenced by CellMLToNektar.pycml.equals(), CellMLToNektar.pycml.UnitsSet.extract(), CellMLToNektar.pycml.get_offset(), and CellMLToNektar.pycml.cellml_units.uniquify_tuple().
def CellMLToNektar.pycml.get_units_by_name | ( | self, | |
uname | |||
) |
Return an object representing the element that defines the units named `uname'.
Definition at line 2725 of file pycml.py.
References CellMLToNektar.pycml.get_units_by_name().
Referenced by CellMLToNektar.pycml.mathml_constructor._get_element_units(), CellMLToNektar.translators.ConfigurationStore._parse_lookup_tables(), CellMLToNektar.pycml.mathml_units_mixin._set_element_in_units(), CellMLToNektar.pycml.mathml_piecewise._set_in_units(), CellMLToNektar.processors.ModelModifier.add_units(), CellMLToNektar.processors.UnitsConverter.convert_assignments(), CellMLToNektar.pycml.cellml_variable.get_units(), CellMLToNektar.pycml.mathml_apply.get_units(), CellMLToNektar.pycml.mathml_piecewise.get_units(), CellMLToNektar.pycml.mathml_cn.get_units(), CellMLToNektar.pycml.mathml_ci.get_units(), CellMLToNektar.pycml.get_units_by_name(), and CellMLToNektar.pycml.cellml_unit.get_units_element().
def CellMLToNektar.pycml.import_processors | ( | ) |
Lazy import.
Definition at line 84 of file pycml.py.
Referenced by CellMLToNektar.pycml.cellml_model.add_units_conversions().
def CellMLToNektar.pycml.is_base_unit | ( | self | ) |
def CellMLToNektar.pycml.is_simple | ( | self | ) |
Return True iff this is a simple units definition. Units are simple if: there is 1 <unit> element the exponent is omitted or has value 1.0 the referenced units are simple or base units
Definition at line 2860 of file pycml.py.
def CellMLToNektar.pycml.make_xml_binder | ( | ) |
Helpful utility functions #.
Create a specialised binder, given some mappings from element names to python classes, and setting namespace prefixes.
Definition at line 168 of file pycml.py.
Referenced by CellMLToNektar.pycml.amara_parse_cellml().
def CellMLToNektar.pycml.model | ( | self | ) |
def CellMLToNektar.pycml.quotient | ( | self, | |
other_units | |||
) |
Form the quotient of two units definitions. This method does not simplify the resulting units. Quotient units will be cached.
Definition at line 3154 of file pycml.py.
Referenced by CellMLToNektar.processors.InterfaceGenerator._split_ode().
def CellMLToNektar.pycml.same_tree | ( | self, | |
other, | |||
this = None |
|||
) |
Check whether this element represents the same tree as a given element.
Definition at line 3897 of file pycml.py.
def CellMLToNektar.pycml.simplify | ( | self, | |
other_units = None , |
|||
other_exponent = 1 |
|||
) |
Simplify these units. Create a new <units> element representing a simplified version of this element. This implements the algorithm of appendix C.3.1. It is however slightly different, in order to allow for units conversions rather than just preserving dimensional equivalence. If other_units is not None, then produce a simplified version of the product of these units and other_units. other_units are considered to be raised to the power of other_exponent (so a quotient can be performed by passing other_exponent=-1). Note that other_exponent should have numeric type. If other_units is a UnitsSet, then we construct a UnitsSet containing self, and call the simplify method on that, thus returning a UnitsSet instance. Multiplicative factors on the original <unit> objects are maintained on the generated references, by taking the product of all factors from <unit> objects that contribute to the new <unit> object. Note that this means that we may need to retain a reference to dimensionless with a multiplier, for example if the quotient of centimetres by metres is taken. Offsets are only permitted on simple units, so may not appear where there are multiple <unit> elements. Hence when a product of units is taken, any offsets are discarded.
Definition at line 2967 of file pycml.py.
References CellMLToNektar.pycml.simplify().
Referenced by CellMLToNektar.pycml.mathml_units_mixin._add_units_conversion(), CellMLToNektar.pycml.dimensionally_equivalent(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator.generate_interface(), and CellMLToNektar.pycml.simplify().
def CellMLToNektar.pycml.varobj | ( | self, | |
ci_elt | |||
) |
Return the variable object for the given ci element. This method is more general than ci_elt.variable, working even for ci elements outside of a component. Such elements *must* contain a fully qualified variable name, i.e. including the name of the component the variable occurs in. This method handles a variety of encodings of variable names that contain the component name.
Definition at line 3853 of file pycml.py.
def CellMLToNektar.pycml.vars_in | ( | self, | |
expr | |||
) |
Return a list of 'variable' objects used in the given expression. This method doesn't make use of the dependency information generated when validating the model, but parses the mathematics afresh. It is used to refresh the dependency lists after partial evaluation, and to determine dependencies in mathematics added outside the normal model structure (e.g. Jacobian calculation). If an ODE appears, includes the mathml_apply instance defining the ODE. Otherwise all returned objects will be cellml_variable instances.
Definition at line 3870 of file pycml.py.
|
private |
dictionary CellMLToNektar.pycml.attrs = {(u'cml:units', NSS[u'cml']): units.name} |
CellMLToNektar.pycml.BINDING_TIMES = Enum('static', 'dynamic') |
CellMLToNektar.pycml.CELLML_SUBSET_ELTS |
CellMLToNektar.pycml.format |
Definition at line 101 of file pycml.py.
Referenced by Nektar::SolverUtils.AddSummaryItem(), Nektar::SolverUtils::UnsteadySystem.CheckSteadyState(), Nektar::LinearisedAdvection.DFT(), Nektar::SolverUtils::FileFieldInterpolator.DFT(), Nektar::SolverUtils::CouplingCwipi.DumpRawFields(), Nektar::SolverUtils::SessionFunction.EvaluateFld(), Nektar::SolverUtils::SessionFunction.EvaluatePts(), Nektar::LibUtilities::PtsIO.Import(), Nektar::LibUtilities::SessionReader.LoadDoc(), Nektar::SolverUtils::FilterLagrangianPoints.OutputStatPoints(), Nektar::LibUtilities::FieldIOXml.SetUpFieldMetaData(), Nektar::LibUtilities::PtsIO.SetUpFieldMetaData(), Nektar::LibUtilities::FieldIO.SetUpOutput(), Nektar::SolverUtils::DriverParallelInTime.SolutionConvergenceMonitoring(), Nektar::SolverUtils::ForcingMovingReferenceFrame.UpdateFrameVelocity(), Nektar::SolverUtils::DriverParareal.v_Execute(), Nektar::SolverUtils::DriverPFASST.v_Execute(), Nektar::FieldUtils::OutputFld.v_GetFullOutName(), Nektar::FieldUtils::OutputVtkBase.v_GetFullOutName(), Nektar::SolverUtils::FilterLagrangianPoints.v_Initialise(), Nektar::SpatialDomains::MeshGraphIOXml.v_PartitionMesh(), Nektar::FieldUtils::OutputInfo.v_Process(), Nektar::FieldUtils::ProcessAverageFld.v_Process(), Nektar::SolverUtils::CouplingFile.v_Receive(), Nektar::SolverUtils::CouplingFile.v_Send(), Nektar::SolverUtils::FilterHistoryPoints.v_WriteData(), Nektar::FilterCellHistoryPoints.v_WriteData(), Nektar::IterativeElasticSystem.WriteGeometry(), Nektar::FieldUtils::OutputVtk.WritePVtu(), Nektar::FieldUtils::OutputVtkBase.WritePVtu(), and Nektar::SpatialDomains::MeshGraphIOXml.WriteXMLGeometry().
CellMLToNektar.pycml.level |
Definition at line 100 of file pycml.py.
Referenced by Nektar::MultiRegions::MultiLevelBisectedGraph.CutEmptyLeaves(), Nektar::MultiRegions::MultiLevelBisectedGraph.CutLeaves(), Nektar::MultiRegions::BottomUpSubStructuredGraph.Dump(), Nektar::MultiRegions::MultiLevelBisectedGraph.DumpNBndDofs(), Nektar::ErrorUtil.Error(), Nektar::MultiRegions::BottomUpSubStructuredGraph.ExpandGraphWithVertexWeights(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetInteriorBlocks(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetInteriorOffset(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetNintDofsPerPatch(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetNlevels(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetNpatchesWithInterior(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetNumGlobalDofs(), Nektar::MultiRegions::BottomUpSubStructuredGraph.GetTotDofs(), Nektar::MultiRegions::BottomUpSubStructuredGraph.MaskPatches(), Nektar::MultiRegions::AssemblyMap.PrintStats(), Nektar::MultiRegions::BottomUpSubStructuredGraph.SetBottomUpReordering(), Nektar::LibUtilities::H5::PList.SetDeflate(), and Nektar::MultiRegions::MultiLevelBisectedGraph.SetGlobalNumberingOffset().
string CellMLToNektar.pycml.msg = "Adding units " + units.name + " as " |
Definition at line 3834 of file pycml.py.
Referenced by Nektar::LibUtilities::Equation.Equation(), Nektar::ErrorUtil.Error(), Nektar::LibUtilities::Equation.Evaluate(), and Nektar::MultiRegions::ExpList.GetExpIndex().
CellMLToNektar.pycml.name |
Definition at line 3835 of file pycml.py.
Referenced by Nektar::LibUtilities::H5::CompoundDataType.Add(), Nektar::LibUtilities::TagWriter.AddChild(), Nektar::LibUtilities::Interpreter::ExpressionEvaluator.AddConstant(), Nektar::LibUtilities::Interpreter.AddConstant(), Nektar::SpatialDomains::Movement.AddInterface(), Nektar::LibUtilities::H5::CompoundDataType.AddString(), Nektar::SolverUtils.AddSummaryItem(), Nektar::FieldUtils::ConfigOption.as(), Nektar::SolverUtils::RiemannSolver.CheckAuxScal(), Nektar::SolverUtils::RiemannSolver.CheckAuxVec(), Nektar::SolverUtils::RiemannSolver.CheckParams(), Nektar::SolverUtils::RiemannSolver.CheckScalars(), Nektar::SolverUtils::RiemannSolver.CheckVectors(), Nektar::LibUtilities::H5::Attribute.Create(), Nektar::LibUtilities::H5::CanHaveAttributes.CreateAttribute(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets.CreateDataSet(), CreateExceptionClass(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets.CreateGroup(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets.CreateWriteDataSet(), NekFactory_Register< tFac< tKey, tBase, tParam... > >.DoRegister(), EquationSystem_GetFunction1(), EquationSystem_GetFunction2(), EquationSystem_WriteFld(), export_DisContField_Helper(), export_Geom_2d(), export_Geom_3d(), Nektar::LibUtilities::H5::CanHaveAttributes.GetAttribute(), Nektar::LibUtilities::Interpreter::ExpressionEvaluator.GetConstant(), Nektar::LibUtilities::Interpreter.GetConstant(), Nektar::LibUtilities::H5::Group.GetElementNames(), Nektar::SolverUtils::EquationSystem.GetFunction(), Nektar::LibUtilities::Interpreter::ExpressionEvaluator.GetParameter(), Nektar::LibUtilities::Interpreter.GetParameter(), Nektar::LibUtilities::H5::CanHaveAttributes::AttrIterator.helper(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets::LinkIterator.helper(), main(), Nektar::LibUtilities::SessionReader.MatchSolverInfoAsEnum(), Nektar::LibUtilities::H5::Attribute.Open(), Nektar::LibUtilities::H5::CanHaveAttributes.OpenAttribute(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets.OpenDataSet(), Nektar::LibUtilities::H5::CanHaveGroupsDataSets.OpenGroup(), NekFactory_Register< tFac< tKey, tBase, tParam... > >.operator()(), Nektar::SolverUtils::FilterFieldConvert.OutputField(), Nektar::FieldUtils::OutputVtk.OutputFromExpLowOrderMultiBlock(), Nektar::SpatialDomains::BoundaryConditions.ReadBoundaryRegions(), Nektar::SpatialDomains::MeshGraphIOXml.ReadComposites(), Nektar::SpatialDomains::Movement.ReadInterfaces(), Nektar::LibUtilities::H5::CanHaveAttributes.SetAttribute(), Nektar::SolverUtils::RiemannSolver.SetAuxScal(), Nektar::SolverUtils::RiemannSolver.SetAuxVec(), Nektar::SolverUtils::RiemannSolver.SetParam(), Nektar::LibUtilities::Equation.SetParameter(), Nektar::LibUtilities::Interpreter::ExpressionEvaluator.SetParameter(), Nektar::LibUtilities::Interpreter.SetParameter(), Nektar::SolverUtils::RiemannSolver.SetScalar(), Nektar::SolverUtils::RiemannSolver.SetVector(), Nektar::LibUtilities::H5TagWriter.v_AddChild(), Nektar::LibUtilities::XmlTagWriter.v_AddChild(), Nektar::SolverUtils::DriverArpack.v_Execute(), Nektar::Poisson.v_GenerateSummary(), Nektar::Projection.v_GenerateSummary(), Nektar::FieldUtils::OutputFileBase.v_Process(), and Nektar::FieldUtils::ProcessMean.v_Process().
def CellMLToNektar.pycml.new_units = dimensionless |
print "Keeping d'less ref with m =",m,"from", print self.description(), if other_units: print "and",other_units.description() else: print
print "Adding",uname,hash(new_units),new_units.description()
print ".simplify", uname
dictionary CellMLToNektar.pycml.NSS |
string CellMLToNektar.pycml.uname = u'___units_' + str(self.units_name_counter[0]) |
CellMLToNektar.pycml.units = self.model._get_units_obj(units) |
_u = units
print "Adding",units.name, hash(units), units.description(), print "(was",id(_u),"now",id(units),")" Ensure referenced units exist
CellMLToNektar.pycml.VarTypes |