[aspect-devel] visualisation plugin
Lev Karatun
lev.karatun at gmail.com
Thu Mar 30 13:48:56 PDT 2017
Hi all,
In my simulations I'm using my own visco-plastic material model plug-in. I
also wrote a visualization plugin that outputs if material is behaving
plastically or viscously. Currently the way it works is I have a function
named "viscosity_ratio" in my material model that re-evaluates the viscous
and plastic components of viscosity the same way as in the evaluate
function, and returns their ratio. But the problem is - every time I want
to change something in the formulas, I have to change it in 2 places, which
is error-prone. So I wanted to change it so that it calls evaluate instead
of re-calculating the viscosity, but the problem is - the functions take 2
different types of input. I'm guessing I would have to make a
MaterialModelInputs vector inside the viscosity_ratio function first to
then use it as input for evaluate function? Should I be doing it through a
FEValues object? In general, am I thinking in the right direction? Maybe
there is an example of this already implemented in some existing plug-in (I
couldn't find any)? Or maybe there is an easier way to implement this?
Any advice would be appreciated.
Best regards,
Lev Karatun.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20170330/e9eadb3f/attachment.html>
More information about the Aspect-devel
mailing list