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

CFD Post Batch File Error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2020, 06:05
Default CFD Post Batch File Error
  #1
Member
 
Daniel
Join Date: Feb 2017
Location: Germany
Posts: 51
Rep Power: 4
zacko is on a distinguished road
Hello everyone,



i was thinking about doing a batch file to automate my post-processing whcih incldues a simple contour (later export a .png-file and the export of a .csv.



I was mainly guided throuhg the common tutorial provided by Ansys (http://200.19.248.10:8002/professore...Processing.pdf)

I did every single step with creating a session file, ect.
I tested the .cse File from CFD-Post with the CFX launcher and it worked, and exported a .csv, but when I added the loop lines from the tutorial, I get an error : "Unrecognized character \xC2 <eval 77> line 7. But in line 7 is nothing. I deleted the first comments, but still the error occurs in line 7.


Hopefully it's just a tiny mistake that I made.



Would be very thankful for help.
Best regards


Daniel



Code:
COMMAND FILE:
   CFX Post Version = 14.0
END

!foreach $res ('R01_alpha_30_Dep_d_01micro_dt1Em08_n8000_v2.res','R01_alpha_30_Dep_d_01micro_dt1Em07_n8000_v2.res')
!{
! print “Processing $res\n”;
! @temp = split('_001.res',$res);
! $type = $temp[0];



DATA READER:
  Clear All Objects = false
  Append Results = false
  Edit Case Names = false
  Multi Configuration File Load Option = Last Case
  Open in New View = true
  Keep Camera Position = true
  Load Particle Tracks = true
  Multi Configuration File Load Option = Last Case
  Open to Compare = false
  Files to Compare =
END

DATA READER:
  Domains to Load=
END

>load filename= $res
# Sending visibility action from ViewUtilities
>show /DATA READER/CASE:Case R01_alpha_30_Dep_d_01micro_dt1Em08_n8000_v2/RES \
PARTICLE TRACK:Res PT for H2Ol, view=/VIEW:View 1


DATA READER:
  CASE:Case R01_alpha_30_Dep_d_01micro_dt1Em08_n8000_v2
    RES PARTICLE TRACK:Res PT for H2Ol
      Activate Filter = On
      Any All Condition = Match ALL
      Apply Instancing Transform = On
      Colour = 0.75, 0.75, 0.75
      Colour Map = Default Colour Map
      Colour Mode = Constant
      Colour Scale = Linear
      Colour Variable = Pressure
      Colour Variable Boundary Values = Hybrid
      Culling Mode = No Culling
      Domain List = Domain 1
      Draw Faces = On
      Draw Lines = Off
      Draw Symbols = Off
      Draw Tracks = On
      Ending Boundary = Wall
      Filter On Diameter = Off
      Filter On End = On
      Filter On Start = Off
      Filter On Track Selection = Off
      Font = Sans Serif
      Instancing Transform = /DEFAULT INSTANCE TRANSFORM:Default Transform
      Lighting = On
      Limit Track Option = Up To Current Timestep
      Line Width = 1
      Max = 0.0 [Pa]
      Maximum Number of Tracks = 8000
      Min = 0.0 [Pa]
      Number of Sides = 8
      Option = From Res
      Particle Diameter = 1e-007 [m]
      Particle Diameter Condition = gt
      Particle Diameter Condition Two = NA
      Particle Diameter Two = 1e-007 [m]
      Range = Global
      Reduction Factor = 1.0
      Reduction or Max Tracks = Max Tracks
      Show Track Labels = Off
      Specular Lighting = On
      Starting Boundary = Inlet
      Surface Drawing = Smooth Shading
      Symbol Max Time Selection = User Specified
      Symbol Scale Type = Relative
      Symbol Size = 1.0
      Symbol Size Option = Constant
      Symbol Start Time = 10.0 [s]
      Symbol Stop Time = -10.0 [s]
      Symbol Time Interval = 1.0 [s]
      Text Colour = 0, 0, 0
      Text Colour Mode = Default
      Text Height = 0.024
      Track Drawing Mode = Line
      Track End Distance = 0.0 [m]
      Track End Time = 0.0 [s]
      Track Limit Type = Time
      Track Line Width = 2
      Track Size = 1.0
      Track Start Distance = 0.0 [m]
      Track Start Time = 0.0 [s]
      Track Symbol = Ball
      Transparency = 0.0
      OBJECT VIEW TRANSFORM:
        Apply Reflection = Off
        Apply Rotation = Off
        Apply Scale = Off
        Apply Translation = Off
        Principal Axis = Z
        Reflection Plane Option = XY Plane
        Rotation Angle = 0.0 [degree]
        Rotation Axis From = 0 [m], 0 [m], 0 [m]
        Rotation Axis To = 0 [m], 0 [m], 0 [m]
        Rotation Axis Type = Principal Axis
        Scale Vector = 1 , 1 , 1
        Translation Vector = 0 [m], 0 [m], 0 [m]
        X = 0.0 [m]
        Y = 0.0 [m]
        Z = 0.0 [m]
      END
    END
  END
END
# Sending visibility action from ViewUtilities
>show /DATA READER/CASE:Case R01_alpha_30_Dep_d_01micro_dt1Em08_n8000_v2/RES \
PARTICLE TRACK:Res PT for H2Ol, view=/VIEW:View 1


CONTOUR:Contour 1
  Apply Instancing Transform = On
  Clip Contour = Off
  Colour Map = Default Colour Map
  Colour Scale = Linear
  Colour Variable = H2Ol.Wall Mass Flow Density
  Colour Variable Boundary Values = Hybrid
  Constant Contour Colour = Off
  Contour Range = Local
  Culling Mode = No Culling
  Domain List = /DOMAIN GROUP:All Domains
  Draw Contours = On
  Font = Sans Serif
  Fringe Fill = On
  Instancing Transform = /DEFAULT INSTANCE TRANSFORM:Default Transform
  Lighting = On
  Line Colour = 0, 0, 0
  Line Colour Mode = Default
  Line Width = 1
  Location List = Wall
  Max = 0.0 [kg m^-2 s^-1]
  Min = 0.0 [kg m^-2 s^-1]
  Number of Contours = 11
  Show Numbers = Off
  Specular Lighting = On
  Surface Drawing = Smooth Shading
  Text Colour = 0, 0, 0
  Text Colour Mode = Default
  Text Height = 0.024
  Transparency = 0.0
  Value List = 0 [kg m^-2 s^-1],1 [kg m^-2 s^-1]
  OBJECT VIEW TRANSFORM:
    Apply Reflection = Off
    Apply Rotation = Off
    Apply Scale = Off
    Apply Translation = Off
    Principal Axis = Z
    Reflection Plane Option = XY Plane
    Rotation Angle = 0.0 [degree]
    Rotation Axis From = 0 [m], 0 [m], 0 [m]
    Rotation Axis To = 0 [m], 0 [m], 0 [m]
    Rotation Axis Type = Principal Axis
    Scale Vector = 1 , 1 , 1
    Translation Vector = 0 [m], 0 [m], 0 [m]
    X = 0.0 [m]
    Y = 0.0 [m]
    Z = 0.0 [m]
  END
END

# Sending visibility action from ViewUtilities
>show /CONTOUR:Contour 1, view=/VIEW:View 1

VIEW:View 1
  Camera Mode = User Specified
  CAMERA:
    Option = Pivot Point and Quaternion
    Pivot Point = 0.088, 0.00268059, 0.153989
    Scale = 31.6704
    Pan = 0, 0
    Rotation Quaternion = -0.399329, 0.0227511, 0.0423899, 0.915544
  END

END

> update

! $exfile = "chart".$type.".csv";

EXPORT:
  ANSYS Export Data = Element Heat Flux
  ANSYS File Format = ANSYS
  ANSYS Reference Temperature = 0.0 [K]
  ANSYS Specify Reference Temperature = Off
  ANSYS Supplemental HTC = 0.0 [W m^-2 K^-1]
  BC Profile Type = Inlet Velocity
  Export Connectivity = Off
  Export Coord Frame = Global
  Export File = $exfile
  Export Geometry = On
  Export Location Aliases =
  Export Node Numbers = On
  Export Null Data = On
  Export Type = Generic
  Export Units System = Current
  Export Variable Type = Current
  Include File Information = Off
  Include Header = On
  Location List = Wall
  Null Token = null
  Overwrite = On
  Precision = 8
  Separator = ", "
  Spatial Variables = X,Y,Z
  Variable List = Yplus
  Vector Brackets = ()
  Vector Display = Scalar
END
>export
>close
!}


# Session file stopped:  2020/01/14 10:19:22
zacko 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 74 October 11, 2018 05:30
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 05:53
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


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