Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flags for settings like turbulence models, advection schemes

Flags for settings like turbulence models, advection schemes

Users asked for the possibility to set more standard settings, especially for turbulence models and advection schemes.

5 Comments
Royce_adsk
Community Manager

Templates would be a better use here.

hartogj
Community Manager
Status changed to: Comments Requested
Could you have a look at the "triggers" functionality and see if this would fill this need? This was added to the API with the 2014 release.
marco.mueller
Advocate

Good point Jon, but I have no idea how to script the setup. It is also not clear to me which language to use here. The following did not work:

 

from CFD import Setup
from CFD import DSE

# design and scenario created by the geometry import are passed
def main(design, scenario):
    DSE.UI.ShowMessage("Trigger: Geometry created for %s" % (scenario.name()))

    # type your script below (indented correctly)  
    advectionScheme = "ADV 5"
    turbModel = "SST K-Omega"

I had the same issue when investigating "triggers"  after finding the hard copy of the API help, there were no examples of how to set solver settings using the API.  I think triggers is a better place to do this than flags, since the flag would need to be deleted in order to have anything other than the flagged advection scheme and turbulence model.  Triggers would have the ability to just have them as default when a new scenario is added.  Templates in their current form don't have ADV5 as an option nor do they have the ability to select from the different turbulence options.

ryan.arnaudin
Alumni
Status changed to: Under Review
 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report