CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Need help in running the CONTUR code of Sivell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2024, 04:09
Post Need help in running the CONTUR code of Sivell
  #1
New Member
 
Join Date: Apr 2024
Location: India
Posts: 14
Rep Power: 2
adit_YA is on a distinguished road
Dear all,

I am trying to design a Mach 2 planar nozzle using CONTUR by Sivell which can be found here https://github.com/noahess/conturpy

The code does not run with the input values I have provided. Any help on this matter is appreciated. I have attached a screenshot of my input values(cards)

Thank you in advance!

Code:
c = ConturSettings()

dmach = 2.0               # design mach
throat_radius = 2/2#2 / 2  # inches

# Card 1: the title of the simulation
c["ITLE"] = f"Mach {dmach}"
c["JD"] = -1
# Card 2 contains gas properties. As air is the assumed working fluid, no changes are required
c["ZO"] = 1
c["RO"] = 1
c["VISC"] = 1
c["VISM"] = 1
c["SFOA"] = 0
# Card 3: key design parameters
c["ETAD"] = 6.5949402      # Angle at point D
c["RC"] =2.0       # Radius of curvature at throat [multiple of throat radius]
#c["FMACH"] = 1.26
c["BMACH"] = 1.5
c["CMC"] = dmach    # Design mach
c["SF"] = 0
# Card 4:
#c["IX"] = 1 
c["ND"] = 15 
c["MP"] = 5#1
c["MQ"] = 0#41
c["JB"] = -1
c["JC"] = 0
c["IT"] = 0
c["LR"] = 21
# Card 6 (B): stagnation and heat transfer properties
c["PPQ"] = 120   # Stagnation pressure [psia]
c["TO"] = 1000      # Stagnation temperature [R]
c["TWT"] = 540      # Wall temperature [R]
c["TWAT"] = 540     # Water-cooling temp [R] (suggest setting to TWT since water cooling not assumed)

# Card 7 (D): interpolation parameters
c["XLOW"] = 0      # Point to begin interpolating contour [in]
c["XEND"] = 0.7      # Point to end interpolating contour [in]
c["XINC"] = .1      # Increment to interpolate by [in]


# Create the input text file and save it to 'm5.0.txt' in the folder 'inputcards'
c.print_to_input(file_name=f'm{dmach:.1f}.txt', output_directory='inputcards')
adit_YA is offline   Reply With Quote

Reply

Tags
cd nozzle, fortran 90, method of characteristics, python, sivells nozzle design moc


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Signal: Segmentation fault (11)' while running openFoam in Parallel Processing jaymeen721 OpenFOAM Running, Solving & CFD 1 April 10, 2023 20:17
How to allow MPI code run in serial mode with a single CPU core? aerosayan Main CFD Forum 15 May 30, 2022 14:05
Running OpenFOAM using a C++ master code salehi144 OpenFOAM Running, Solving & CFD 1 August 10, 2014 05:14
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 09:10


All times are GMT -4. The time now is 15:16.