[aspect-devel] Querying Aspect plugins directly from C++
Timo Heister
heister at clemson.edu
Mon Nov 18 08:48:24 PST 2013
Dear Jonathan,
a problem is that a material model can potentially depend on many
things inside aspect (geometry, etc.) which will be difficult for you
to reproduce in a separate program.
I would create a .prm that sets up a tiny test problem, does 2 time
steps, and writes out the results. Then you can compare things like
the statistics file. If you want to test something specific, you can
always write a postprocessor that generates a file with the
information you want (say look up viscosity using representative_point
and a range of temperatures).
Note that we have a lot of unittests in the tests/ directory that do
something similar.
On Sun, Nov 17, 2013 at 9:05 PM, Jonathan Perry-Houts
<jperryhouts at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> I'm new to Aspect and this mailing list so forgive me if this has been
> answered in the past.
>
> I was wondering if there's an easy way to query an aspect plugin for
> information based on inputs. It would be helpful if, for instance, I
> could make plots of viscosity as a function of temperature without
> running computationally expensive models and post-processing the results.
>
> I was planning on writing a small program to load my plugin as a
> shared library, the same way as Aspect accesses it, to unit test
> individual methods. Is this the best way or would you recommend
> something else?
>
> Alternatively, has anyone written something like this in the past that
> I could just extend rather than starting from scratch? Thanks in advance!
>
> Cheers,
> Jonathan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.14 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSiXXkAAoJEGe6xJ1FYRpRJD4H/jCdWzWeNHhTzB4ySiKpK7tu
> X/VNJKZKQsmN9pASYVwq2esbfZzjEvoFb4m8B2Bkur/gyVfQbn6gewLcDcadK5Dm
> FEiBDdhgsSmDEs7Oa7KRrsjaV8cxdu6MUUawK+c0pHWWSDpmUWlUDg5frngG2hXy
> 2BlQRGvklLg0kzZnmi/wwErwYSJPeCRWvB1Ss96ovxZ7EyI2MfVG7k91eHkB0TWg
> UVzBj6VRESTNBQar1dA/qbCy+dPtrAlYiGhmn7Agk7auF0m82vY7Z07JA7OUZWIU
> W7xQ9f6EwugPv2pePuo8AfFXHpZ7bBxqWRHWcBKQQvJExj2bfRtKXBvhrIwGd9c=
> =ueYt
> -----END PGP SIGNATURE-----
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
--
Timo Heister
http://www.math.clemson.edu/~heister/
More information about the Aspect-devel
mailing list