|
[Sponsors] |
February 17, 2023, 06:05 |
Create variable to read in a journal
|
#1 |
Member
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 11 |
Hi everyone,
I'm trying to create a journal to mesh recursively some different geometries with the same parameters, but I'm not being able to do so. My code is the following: Code:
(Do ((x 1 (+ x 1))) ((> x 5)) (%py-exec "workflow.InitializeWorkflow(WorkflowType=r'Watertight Geometry')") (%py-exec "meshing.GlobalSettings.LengthUnit.setState(r'mm')") (%py-exec "meshing.GlobalSettings.AreaUnit.setState(r'mm^2')") (%py-exec "meshing.GlobalSettings.VolumeUnit.setState(r'mm^3')") ;Read the geometry ;(%py-exec "workflow.TaskObject['Import Geometry'].Arguments.setState({r'FileName': r'/folder1/folder2/queue_test/designX.pmdb',})") (%py-exec "workflow.TaskObject['Import Geometry'].Execute()") ;Start doing operations ;Not relevant code for this ;Save mesh ;(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Mesh...") ;(cx-gui-do cx-set-file-dialog-entries "Select File" '( "designX.msh.h5" s1) "CFF Mesh Files (*.msh.h5 )") ) (cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal") Has anyone done this before? Regards, |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Read a vector list with IFstream and create IOobject from it | Sylv | OpenFOAM Programming & Development | 1 | October 9, 2017 15:25 |
Create patches to initialize a variable | chmurillor | STAR-CCM+ | 0 | July 2, 2015 08:34 |
journal file to create points | simona | FLUENT | 1 | May 29, 2008 01:27 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 04:27 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |