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

model.evaluate() doesn't return all data points #142

Closed
Adrien-Amour opened this issue Jul 6, 2023 · 2 comments
Closed

model.evaluate() doesn't return all data points #142

Adrien-Amour opened this issue Jul 6, 2023 · 2 comments
Labels
needs info More information is needed.

Comments

@Adrien-Amour
Copy link

I'm exporting data from a comsol file to analyse in python using the following line of code,

(x, y, z, Vol, Px, Py, Pz) = model.evaluate(['x', 'y', 'z', 'meshvol', 'es.Px', 'es.Py', 'es.Pz'])

the issue is that the length of the arrays defined by this command is smaller than the number of finite elements in the model. I know this because I have also exported using the comsol gui and there is about an 800 point discrepency between the number of data elements in each method (there is about 140000 points overall). This results in my analysis producing different results depending on whether i export the data as a text file and analyse that, or if i export the data using model.evaluate. Is there any reason why this might happen/ any way I can fix it?

@john-hen
Copy link
Collaborator

john-hen commented Jul 7, 2023

Hi. I don't see a reason why this would happen, but I also cannot reproduce what you are doing. If you think this is a bug (and it could also be in Comsol, rather than MPh), you should think if you can provide a reproducible example, i.e. a model file. Ideally a minimal example, i.e. a simple model, quick to solve, producing little data, much like the demo model capacitor.mph that ships with MPh.

@john-hen john-hen added the needs info More information is needed. label Jul 12, 2023
@john-hen john-hen changed the title model.evaluate() doesn't return all data points model.evaluate() doesn't return all data points Jul 16, 2023
@john-hen
Copy link
Collaborator

john-hen commented Sep 6, 2023

Closed as: non-reproducible.

@john-hen john-hen closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info More information is needed.
Projects
None yet
Development

No branches or pull requests

2 participants