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

Increase 'nIter' for 'attachPoints' in 'pyBlock.py' #165

Closed
DavidAnderegg opened this issue Oct 31, 2022 · 2 comments
Closed

Increase 'nIter' for 'attachPoints' in 'pyBlock.py' #165

DavidAnderegg opened this issue Oct 31, 2022 · 2 comments

Comments

@DavidAnderegg
Copy link

Description of feature

When using DVGeo, pyBlock.py is used in the background. In the function attachPoints(...) found here the iterations-limit nIter is hardcoded to 100.

I encountered a problem where 100 is not enough.

Potential solution

Either increase the default value or make it adjustable through the regular DVGeo-wrapper.

@sseraj
Copy link
Collaborator

sseraj commented Oct 31, 2022

This can be adjusted by including the nIter keyword in the addPointSet call.
If you are using ADflow, nIter can be passed to the CFD mesh point set by setting pointSetKwargs:

CFDPointSetKwargs = {"nIter": 500}
CFDSolver.setDVGeo(DVGeo, pointSetKwargs=CFDPointSetKwargs)

@DavidAnderegg
Copy link
Author

Perfect! Exactly what i was looking for, thank you.

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

No branches or pull requests

2 participants