CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] dimensionedScalar parameters

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 26, 2016, 10:10
Default dimensionedScalar parameters
  #1
New Member
 
Khomenko Maxim
Join Date: Aug 2015
Posts: 16
Rep Power: 10
mbookin is on a distinguished road
Hello!

I'm trying to change parameters of the case using pyFoam. Here is the part of my python script:
Code:
for laserPower in [400,800,900]:
    print "laserPower:",laserPower
    case=orig.cloneCase("CASE_%f"%laserPower).name
    transport=ParsedParameterFile(path.join(case,
                                            "constant",
                                            "thermalProperties"))
    transport["laserPower"]=laserPower
    transport.writeFile()
The thing is that my program needs laserPower to be dimensionedScalar, but pyFoam makes it a scalar. Of course I can make my programm not to be so discriminating, but may be pyFoam can parse dimensionedScalars?? Does anybody know how to do that?
mbookin 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
Pro/E to ANSYS Parameterization Guide Trues ANSYS 4 April 18, 2018 05:52
How to modify Arrhenius rate parameters in Fluent ?? Kashif123 FLUENT 0 October 25, 2016 21:59
Parameters rhoSimpleFoam marcus85 OpenFOAM Pre-Processing 0 May 15, 2013 09:36
Turbulence model parameters and equations Maximus91 Main CFD Forum 1 October 24, 2012 13:20
Parameters for multigrid solver HaZe OpenFOAM Running, Solving & CFD 3 January 28, 2012 02:05


All times are GMT -4. The time now is 08:37.