Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community Computational Fluid Dynamics Turbo Python API in the Simulation context

Stats

  • State Verified Answer
  • Replies 1
  • Subscribers 6
  • Views 1011
  • Members are here 0
More Content

Python API in the Simulation context

cfd enthusiast
cfd enthusiast 11 months ago

Hello Everyone,

I am currently writing a script to automate the simulation context.

In the simulation context I want to access the static pressure of the inlet and outlet in the Turbo initial solution tab.

I belive I have to fill them out correctly if i choose "for turbomachinery" in the initial solution tab under one of the domains.

I can't find the code to set those static pressures in the API user manual.

 

  • Sign in to reply
  • Cancel
  • Colinda
    +1 Colinda 11 months ago

    Hi,

    The static pressures can be accessed through the commands:

     set_inlet_initial_static_pressure(v)

    set_outlet_initial_static_pressure(v)

    So for the tutorial of the multistage axial compressor it writes for example in this way:

    ## InititalConditions
    # Domain1 Settings
    main_flow_par = dom_parameters.InitialSolutionParameters.MainFlowVariablesParameters(domain1)
    main_flow_par.set_initial_solution_choice('Turbo')
    domain1.set_inlet_initial_static_pressure(90000)

    tur_flow_par = dom_parameters.InitialSolutionParameters.TurbulentQuantitiesParameters.InitialValuesParameters(domain1)
    tur_flow_par.set_k_free(150)
    tur_flow_par.set_epsilon_free(12587e4)

    #Domain2 Settings
    print("Row 2: Rotating?",domain2.is_rotating())
    main_flow_par2 = dom_parameters.InitialSolutionParameters.MainFlowVariablesParameters(domain2)
    main_flow_par2.set_initial_solution_choice('Turbo')
    domain2.set_inlet_initial_static_pressure(85000)
    domain2.set_outlet_initial_static_pressure(100000)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information