Skip to content

Conversation

@e-dub
Copy link
Contributor

@e-dub e-dub commented Oct 5, 2020

No description provided.

ffd = pg.FFD()
ffd.read_parameters('../tests/test_datasets/parameters_test_ffd_pipe_unv_C0.prm')

%cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C0.prm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this line works in a python script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works from Sypder, but not from the command line. Therefore now gone! Thanks


new_mesh_points = ffd(mesh_points)

%cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C1.prm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, removed from k file

vedo.settings.embedWindow(backend='k3d', verbose=True)
vedo.show(DeformedVTK, viewup="z", resetcam=True)

%cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C1.prm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is good here as the mdpa can therefore be visualized

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for the external packages. I was referring to the cat line. Thanks

@@ -0,0 +1,19 @@
import pygem as pg
from pygem.khandler import KHandler
import vedo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep only the used packages

import pygem as pg
from pygem.khandler import KHandler
import vedo
import meshio
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@mtezzele
Copy link
Collaborator

mtezzele commented Oct 7, 2020

Dear @e-dub just a curiosity: you are able to visualize something in the file tutorial-7-mdpa.ipynb? From github I cannot see any plot...

@e-dub
Copy link
Contributor Author

e-dub commented Oct 7, 2020

Dear @e-dub just a curiosity: you are able to visualize something in the file tutorial-7-mdpa.ipynb? From github I cannot see any plot...

Chiaro!
Screenshot_20201007_115447

@mtezzele mtezzele merged commit ec8203e into mathLab:master Oct 7, 2020
@mtezzele
Copy link
Collaborator

mtezzele commented Oct 7, 2020

@e-dub thanks for this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants