|
[Sponsors] |
February 24, 2016, 12:13 |
Simple question about .res file
|
#1 |
New Member
Livsviktigt Flöde
Join Date: Feb 2016
Posts: 2
Rep Power: 0 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |