-
-
July 31, 2019 at 1:50 pm
sadaspire
SubscriberI am trying to run a FSI simulation using the system coupling set up in the Workbench. In order to speed up the sim, I plan to use the HPC but I have been struggling to create a journal file from the Workbench. Below is what I created so far using automatic creation. Could anyone know how to write the journal file for the system coupling in Workbench? Thank you for your help in advance.
# encoding: utf-8
# Release 18.1
SetScriptVersion(Version="18.1.463")
template1 = GetTemplate(TemplateName="System Coupling")
system1 = GetSystem(Name="FFF")
system2 = template1.CreateSystem(
Position="Right",
RelativeTo=system1)
setupComponent1 = system1.GetComponent(Name="Setup")
setupComponent2 = system2.GetComponent(Name="Setup")
setupComponent1.TransferData(TargetComponent=setupComponent2)
system3 = GetSystem(Name="SYS")
setupComponent3 = system3.GetComponent(Name="Setup")
setupComponent3.TransferData(TargetComponent=setupComponent2)
setupComponent1.Update(AllDependencies=True)
setup1 = system1.GetContainer(ComponentName="Setup")
setup1.SendCommand(Command='(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list ))')
setupComponent3.Update(AllDependencies=True)
setupComponent2.Refresh()
setup2 = system2.GetContainer(ComponentName="Setup")
AnalysisSettings1 = setup2.GetAnalysisSettings()
AnalysisSettings1.EndTime = "500
"
AnalysisSettings1.StepSize = "0.5
"
dataTransfer1 = setup2.CreateDataTransfer(Name="Data Transfer")
dataTransfer2 = setup2.CreateDataTransfer(Name="Data Transfer 2")
participant1 = setup2.GetParticipant(Name="Solution 1")
dataTransfer1.SetEntityProperties(Properties=Set(SourceParticipant=participant1, SourceRegion=None, SourceVariable=None))
region1 = participant1.GetRegion(Name="fsi")
dataTransfer1.SetEntityProperties(Properties=Set(SourceRegion=region1, SourceVariable=None))
variable1 = GetDataEntity("/Setup 2/SystemCouplingVariable:force")
dataTransfer1.SetEntityProperties(Properties=Set(SourceVariable=variable1))
participant2 = setup2.GetParticipant(Name="Solution")
dataTransfer1.SetEntityProperties(Properties=Set(TargetParticipant=participant2, TargetRegion=None, TargetVariable=None))
region2 = participant2.GetRegion(Name="FSIN_1")
dataTransfer1.SetEntityProperties(Properties=Set(TargetRegion=region2, TargetVariable=None))
variable1 = GetDataEntity("/Setup 2/SystemCouplingVariable:FORC")
dataTransfer1.TargetVariable = variable1
dataTransfer2.SetEntityProperties(Properties=Set(SourceParticipant=participant2, SourceRegion=None, SourceVariable=None))
dataTransfer2.SetEntityProperties(Properties=Set(SourceRegion=region2, SourceVariable=None))
variable1 = GetDataEntity("/Setup 2/SystemCouplingVariable:INCD")
dataTransfer2.SetEntityProperties(Properties=Set(SourceVariable=variable1))
dataTransfer2.SetEntityProperties(Properties=Set(TargetParticipant=participant1, TargetRegion=None, TargetVariable=None))
dataTransfer2.SetEntityProperties(Properties=Set(TargetRegion=region1, TargetVariable=None))
variable1 = GetDataEntity("/Setup 2/SystemCouplingVariable
isplacement")
dataTransfer2.TargetVariable = variable1
intermediateResultFilesOutputControls1 = setup2.GetIntermediateRestartDataOutputControls()
intermediateResultFilesOutputControls1.OutputFrequency = "StepInterval"
intermediateResultFilesOutputControls1.StepInterval = 5
-
August 2, 2019 at 10:28 am
sadaspire
SubscriberHi Peter,
Thank you for your reply.
Please find the attached Workbench project file. It would be appreciated to give me some advice.
Cheers,
-
August 2, 2019 at 10:48 am
peteroznewman
SubscriberSorry, I can't help. I have never used journal files.
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.