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, 11:10
Default dimensionedScalar parameters
  #1
New Member
 
Khomenko Maxim
Join Date: Aug 2015
Posts: 18
Rep Power: 11
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 06:52
How to modify Arrhenius rate parameters in Fluent ?? Kashif123 FLUENT 0 October 25, 2016 22:59
Parameters rhoSimpleFoam marcus85 OpenFOAM Pre-Processing 0 May 15, 2013 10:36
Turbulence model parameters and equations Maximus91 Main CFD Forum 1 October 24, 2012 14:20
Parameters for multigrid solver HaZe OpenFOAM Running, Solving & CFD 3 January 28, 2012 03:05


All times are GMT -4. The time now is 01:06.