-
Notifications
You must be signed in to change notification settings - Fork 841
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
Bug fixes... #427
Bug fixes... #427
Changes from all commits
8832095
0c8e3c5
6ea60cf
e856aa8
f4a321d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -689,7 +689,7 @@ CEulerSolver::CEulerSolver(CGeometry *geometry, CConfig *config, unsigned short | |
Total_CFx = 0.0; Total_CFy = 0.0; Total_CFz = 0.0; | ||
Total_CT = 0.0; Total_CQ = 0.0; Total_CMerit = 0.0; | ||
Total_MaxHeat = 0.0; Total_Heat = 0.0; Total_ComboObj = 0.0; | ||
Total_CpDiff = 0.0; Total_HeatFluxDiff = 0.0; | ||
Total_CpDiff = 0.0; Total_HeatFluxDiff = 0.0; Total_Custom_ObjFunc=0.0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! |
||
Total_NetCThrust = 0.0; Total_NetCThrust_Prev = 0.0; Total_BCThrust_Prev = 0.0; | ||
Total_Power = 0.0; AoA_Prev = 0.0; | ||
Total_CL_Prev = 0.0; Total_CD_Prev = 0.0; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,15 +48,19 @@ def main(): | |
parser.add_option("-n", "--partitions", dest="partitions", default=1, | ||
help="number of PARTITIONS", metavar="PARTITIONS") | ||
parser.add_option("-q", "--quiet", dest="quiet", default='False', | ||
help="output QUIET to log files", metavar="QUIET") | ||
|
||
help="output QUIET to log files", metavar="QUIET") | ||
parser.add_option("-z", "--zones", dest="nzones", default="1", | ||
help="Number of Zones", metavar="ZONES") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the number of zones is now an input of these scripts? I thought it was stored in the mesh information. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have this because the python scripts also need to know the number of zones in order to have to correct file names. |
||
|
||
(options, args)=parser.parse_args() | ||
options.partitions = int( options.partitions ) | ||
options.quiet = options.quiet.upper() == 'TRUE' | ||
options.nzones = int( options.nzones ) | ||
|
||
direct_differentiation( options.filename , | ||
options.partitions , | ||
options.quiet ) | ||
options.quiet , | ||
options.nzones ) | ||
#: def main() | ||
|
||
|
||
|
@@ -65,11 +69,13 @@ def main(): | |
# ------------------------------------------------------------------- | ||
|
||
def direct_differentiation( filename , | ||
partitions = 0 , | ||
quiet = False ): | ||
partitions = 0 , | ||
quiet = False , | ||
nzones = 1 ): | ||
# Config | ||
config = SU2.io.Config(filename) | ||
config.NUMBER_PART = partitions | ||
config.NZONES = int(nzones) | ||
config["DIRECT_DIFF"] = 'DESIGN_VARIABLES' | ||
|
||
if quiet: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the Custom_ObjFunc to the incompressible solver