novaphy.is_scaffold¶
Returns True when a NovaPhy object instance is a scaffold placeholder.
Pass the constructed solver, not its Python class object. SolverMPM
instances are currently registered; SolverLBM instances return False
because LBM is a real optional-backend runtime.
Example¶
import novaphy
model = novaphy.ModelBuilder().finalize()
mpm = novaphy.solvers.SolverMPM(model)
lbm = novaphy.solvers.SolverLBM(model)
assert novaphy.is_scaffold(mpm)
assert not novaphy.is_scaffold(lbm)
assert not novaphy.is_scaffold(model)