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

How to create loop in Muticonfiguration run?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2018, 03:34
Default How to create loop in Muticonfiguration run?
  #1
Senior Member
 
sluzzer
Join Date: Jul 2014
Posts: 146
Rep Power: 12
shivasluzz is on a distinguished road
I use keyframe meshes with Multiconfiguration setup.
The motion is periodic.
How to create loop in Multi-configuration for periodic motion instead of manually creating so many
configurations?
Please help.
shivasluzz is offline   Reply With Quote

Old   April 22, 2018, 08:30
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Would a session file help?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 22, 2018, 08:35
Default
  #3
Senior Member
 
sluzzer
Join Date: Jul 2014
Posts: 146
Rep Power: 12
shivasluzz is on a distinguished road
Can you please explain that?
For gear mesh simulation, I use keyframe meshes with multi-configuration. Once a tooth reaches the position of next tooth, is there any way to loop the last configuration to first configuration?
Thanks..
shivasluzz is offline   Reply With Quote

Old   April 22, 2018, 08:42
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Record a session file in CFD-Post of the actions to record one tooth worth of simulation. Stop it and have a look at the session file it generates. You may be able to make it loop over all your configurations but editing the session file to do looping or other structures.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 22, 2018, 08:46
Default
  #5
Senior Member
 
sluzzer
Join Date: Jul 2014
Posts: 146
Rep Power: 12
shivasluzz is on a distinguished road
Again that becomes a manual looping. As of now, for the next cycle, I make the next configuration, with the Flow analysis of first configuration and with the initial values of last configuration. This method works but it is tedious. So I am looking for a automatic looping method.
Thanks.
shivasluzz is offline   Reply With Quote

Old   April 22, 2018, 19:26
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have you looked at a session file? It is not manual looping. I have done many repetitive complex tasks in session files.

You can use perl inside the session file to do looping, if/then/else, internal variables and so on. Or you can write a big session file which automates all the tasks with no perl, but you use something like python to generate all the details and generate a text file. This is my preferred option as I am more familiar with python than perl.

Or if you are looking for a button to press and it does your task.... well, I fear you are going to be disappointed.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 23, 2018, 09:29
Default
  #7
Senior Member
 
sluzzer
Join Date: Jul 2014
Posts: 146
Rep Power: 12
shivasluzz is on a distinguished road
Thanks ghorrocks :-)
I found perl's power syntax will satisfy my requirement
shivasluzz 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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 15:18
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 16:57


All times are GMT -4. The time now is 21:34.