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

Simple question about .res file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 24, 2016, 12: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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 11 November 1, 2016 07:43
How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 04:04
Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Installation 6 September 5, 2015 21:03
Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Installation 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 09:17.