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

External Connections

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2016, 00:42
Default External Connections
  #1
New Member
 
Join Date: Feb 2015
Posts: 5
Rep Power: 11
DrDevice is on a distinguished road
Hey guys,

I'm trying to link up ANSYS to an external python code for generating some geometry for optimisation. I've got it working as I want except that ANSYS doesn't write out the parameters when you change one of them and update. This means my code can't read in any parameters to build off. I've read through the documentation that exists, and everything seems to be in order, but that said, the documentation is clear as mud for a first time user of external connections.

Have any of you guys had any experience with external connections and know what I'm doing wrong? A truncated version of my config file is below.

HTML Code:
<Configuration CellName="Foilgen" SystemName="Aerofoil Update" Version="" ShowEditConfiguration="True">
   <Instructions WorkingDirectory = "[insert directory here]">
         <Instruction Type="Init">
             <ParameterParsingRules>
		  <Parameter Name="Wing 1 - Angle" Type="Input">
		      <Rule Type="File">currentProfile.inp</Rule>
		      <Rule Type="StartLine">1</Rule>
	              <Rule Type="PreString">Wing1_Angle=</Rule>
		      <Rule Type="DataType">Double</Rule>
                  </Parameter>
              </ParameterParsingRules>
	  </Instruction>
	  <Instruction Type="Update">
	     <Name>UpdateAerofoil</Name>
		 <Script>AerofoilGenExec.py</Script>
	  </Instruction>		  
   </Instructions>
</Configuration>
EDIT: I solved it. Apparently ANSYS won't populate the output file with the parameters automatically. You need to make sure the output file already has the pre strings im it.

Last edited by DrDevice; January 20, 2016 at 00:54.
DrDevice is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Setting an external B0_x field in MHD module fferroni FLUENT 11 August 1, 2022 08:20
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 08:09
Can't Update FLuent Setup with active Connections in Mesh dulka90 FLUENT 8 December 9, 2013 11:36
Update boundary conditions calculated by an external program CedricVH OpenFOAM 2 January 15, 2010 11:55


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