CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Create variable to read in a journal

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2023, 06:05
Default Create variable to read in a journal
  #1
Member
 
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 11
alexvaleije is on a distinguished road
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")
I want that the name "designX" changes recursively with every loop, but I have tried some many different ways, without any positive result.

Has anyone done this before?
Regards,
alexvaleije 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
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


All times are GMT -4. The time now is 18:00.