Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple parameters for custom output function #17

Open
da-crivelli opened this issue Feb 11, 2023 · 0 comments
Open

Allow multiple parameters for custom output function #17

da-crivelli opened this issue Feb 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@da-crivelli
Copy link
Owner

If a user wants to write their own reduction function (e.g. Galileo - Rankine criterion, or a custom safety factor output) they currently would need to use some post-processing in Paraview or other software.

In a future version this should be possible:

fea.set_outputs([{
            "output_var": ("s1","s2","s3"),
            "reduction_fun": myfun,
        }])

def myfun(s1, s2, s3):
    return something
@da-crivelli da-crivelli added the enhancement New feature or request label Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant