CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Simple question about .res file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2016, 11:13
Default Simple question about .res file
  #1
New Member
 
Livsviktigt Flöde
Join Date: Feb 2016
Posts: 2
Rep Power: 0
livsviktiftflode is on a distinguished road
Hi,

I am VERY new with this software and I have a problem that I think someone here can answer really easy.

I am trying to change some basic geometry from a script and then run the solver with the different geometries.

My problem is that I want to change the .res file name according to the parameters instead of the default name which is CFX_001.res, CFX_002.res and so on...

The script I am using is:

# encoding: utf-8
# Release 16.1
SetScriptVersion(Version="16.1.91")

#define variables
bredden = 0.001
radie = 0.001

for x in range (0, 2):

designPoint1 = Parameters.GetDesignPoint(Name="0")
Bredd = Parameters.GetParameter(Name="P3")
designPoint1.SetParameterExpression(
Parameter=Bredd,
Expression=str(bredden)+" [m]")
radie=0.001 #sätter radien till 0 igen när vi har ökat bredden på väggen
for y in range (0, 2):
designpoint1 = Parameters.GetDesignPoint(Name="0")
InnerRadie = Parameters.GetParameter(Name="P4")
designPoint1.SetParameterExpression(
Parameter=InnerRadie,
Expression=str(radie)+" [m]")
Update()
radie=radie+0.001
bredden=bredden+0.001
livsviktiftflode is offline   Reply With Quote

Reply


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 02:49.