error message
hi everyone,
I am a new user for CFX so I might ask some stupid questions here. Sorry for that. My question is when I set up my boundary condition, there are always some error messages. In the detail of my boundary, I set my Flow Direction to be Zero Gradient and then I got the error message: Expression resolves to invalid units ('m s^1') in value set for parameter 'Unit Vector X Component' in object '/FLOW:Flow Analysis 1/DOMAIN: Default Domain/BOUNDARY:Inlet1/BOUNDARY CONDITIONS/FLOW DIRECTION'. Expected units: 'dimensionless'. Expression resolves to invalid units ('m s^1') in value set for parameter 'Unit Vector Y Component' in object '/FLOW:Flow Analysis 1/DOMAIN: Default Domain/BOUNDARY:Inlet1/BOUNDARY CONDITIONS/FLOW DIRECTION'. Expected units: 'dimensionless'. There are no 'Unit Vector X Component' and 'Unit Vector X Component' these two terms in the option of Flow Direction so I have no idea how to make it right. Could anyone help me? Thank you. 
The error message seems pretty clear to me. The direction vector should be unitless but it is getting a number with units of velocity.
Can you post your CCL? 
My expressions:
Boundary Pressure 250*(cos(2*x/1[m])+cos(2*y/1[m]))*exp(4*0.000001002*t/1[s])*1[kg]/1[m]/1[s]/1[s] Boundary X Velocity sin(x/1[m]) *cos(y/1[m])*exp(2*0.000001002*t/1[s])*1[m]/1[s] Boundary Y Velocity cos(x/1[m])*sin(y/1[m])*exp(2*0.000001002*t/1[s])*1[m]/1[s] Initial Pressure 250*(cos(2*x/1[m])+cos(2*y/1[m]))*1[kg]/1[m]/1[s]/1[s] Initial X Velocity sin(x/1[m])*cos(y/1[m])*1[m]/1[s] Initial Y Velocity cos(x/1[m])*sin(y/1[m])*1[m]/1[s] I apply Boundary pressure in the Static Pressure of option of Mass and Momentum on my BoundaryInlet1 and BoundaryInlet2. And, I apply Boundary X Velocity and Boundary Y Velocity in the Cart. Vel. Components of the option of Mass and Momentum on my BoundaryOutlet1 and Boundaryoutlet2. At first, I tried to apply both of pressure and velocity on all of my boundarys, but it did not work. So I adjusted to apply pressure on my inlets and velocity on my oulets. Are the problems about my expressions? Thank you for your response. 
Please post your CCL.

You get the error because you have specified static pressure on the inlet and at the same time an expression that resolves to [m/s] for the flow direction settings. The flow direction settings should be dimensionless if you want to specify it.
Also, setting both pressure and velocity on the same boundary is not possible. 
I am sorry to ask a stupid question here. I checked CFX tutorial and tried to find the file of CCL. I could not find where it is. Could you tell me how I could find it? Thank you very much.

File/export/ccl

Dear Lane,
I set my Flow Direction to be Zero Gradient. I have no idea how I could fix this problem. Could you help me? Thank you very much. 
As Glenn said:
Quote:

My CCL:
LIBRARY: CEL: EXPRESSIONS: Boundary Pressure = \ 250*(cos(2*x/1[m])+cos(2*y/1[m]))*exp(4*0.000001002*t/1[s])*1[kg]/1[m\ ]/1[s]/1[s] Boundary X Velocity = sin(x/1[m]) \ *cos(y/1[m])*exp(2*0.000001002*t/1[s])*1[m]/1[s] Boundary Y Velocity = \ cos(x/1[m])*sin(y/1[m])*exp(2*0.000001002*t/1[s])*1[m]/1[s] Initial Pressure = 250*(cos(2*x/1[m])+cos(2*y/1[m]))*1[kg]/1[m]/1[s]/1[s] Initial X Velocity = sin(x/1[m])*cos(y/1[m])*1[m]/1[s] Initial Y Velocity = cos(x/1[m])*sin(y/1[m])*1[m]/1[s] END DOMAIN: Default Domain Coord Frame = Coord 0 Domain Type = Fluid Location = B16 BOUNDARY: Inlet1 Boundary Type = INLET Location = Inlet1 BOUNDARY CONDITIONS: FLOW DIRECTION: Option = Zero Gradient END FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Static Pressure Relative Pressure = Boundary Pressure END END END BOUNDARY: Inlet2 Boundary Type = INLET Location = Inlet2 BOUNDARY CONDITIONS: FLOW DIRECTION: Option = Zero Gradient END FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Static Pressure Relative Pressure = Boundary Pressure END END END BOUNDARY: Outlet1 Boundary Type = OUTLET Location = Outlet1 BOUNDARY CONDITIONS: FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Cartesian Velocity Components U = Boundary X Velocity V = Boundary Y Velocity W = 0 [m s^1] END END END BOUNDARY: Outlet2 Boundary Type = OUTLET Location = Outlet2 BOUNDARY CONDITIONS: FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Cartesian Velocity Components U = Boundary X Velocity V = Boundary Y Velocity W = 0 [m s^1] END END END BOUNDARY: Wall Boundary Type = WALL Location = F17.16,F18.16 BOUNDARY CONDITIONS: MASS AND MOMENTUM: Option = No Slip Wall END END END 
Remove the "Zero Gradient" direction option in your inlet and use the default normal to boundary option.
Also note this is only part of your CCL. The solver options and materials are not included. 
Dear Glenn,
Do I need to remove the Zero Gradient in my outlets too? The CLL: LIBRARY: MATERIAL GROUP: Air Data Group Description = Ideal gas and constant property air. Constant \ properties are for dry air at STP (0 C, 1 atm) and 25 C, 1 atm. END MATERIAL GROUP: CHT Solids Group Description = Pure solid substances that can be used for conjugate \ heat transfer. END MATERIAL GROUP: Calorically Perfect Ideal Gases Group Description = Ideal gases with constant specific heat capacity. \ Specific heat is evaluated at STP. END MATERIAL GROUP: Constant Property Gases Group Description = Gaseous substances with constant properties. \ Properties are calculated at STP (0C and 1 atm). Can be combined with \ NASA SP273 materials for combustion modelling. END MATERIAL GROUP: Constant Property Liquids Group Description = Liquid substances with constant properties. END MATERIAL GROUP: Dry Peng Robinson Group Description = Materials with properties specified using the built \ in Peng Robinson equation of state. Suitable for dry real gas modelling. END MATERIAL GROUP: Dry Redlich Kwong Group Description = Materials with properties specified using the built \ in Redlich Kwong equation of state. Suitable for dry real gas modelling. END MATERIAL GROUP: Dry Soave Redlich Kwong Group Description = Materials with properties specified using the built \ in Soave Redlich Kwong equation of state. Suitable for dry real gas \ modelling. END MATERIAL GROUP: Dry Steam Group Description = Materials with properties specified using the IAPWS \ equation of state. Suitable for dry steam modelling. END MATERIAL GROUP: Gas Phase Combustion Group Description = Ideal gas materials which can be use for gas phase \ combustion. Ideal gas specific heat coefficients are specified using \ the NASA SP273 format. END MATERIAL GROUP: IAPWS IF97 Group Description = Liquid, vapour and binary mixture materials which use \ the IAPWS IF97 equation of state. Materials are suitable for \ compressible liquids, phase change calculations and dry steam flows. END MATERIAL GROUP: Interphase Mass Transfer Group Description = Materials with reference properties suitable for \ performing either Eulerian or Lagrangian multiphase mass transfer \ problems. Examples include cavitation, evaporation or condensation. END MATERIAL GROUP: Liquid Phase Combustion Group Description = Liquid and homogenous binary mixture materials which \ can be included with Gas Phase Combustion materials if combustion \ modelling also requires phase change (eg: evaporation) for certain \ components. END MATERIAL GROUP: Particle Solids Group Description = Pure solid substances that can be used for particle \ tracking END MATERIAL GROUP: Peng Robinson Dry Hydrocarbons Group Description = Common hydrocarbons which use the Peng Robinson \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Peng Robinson Dry Refrigerants Group Description = Common refrigerants which use the Peng Robinson \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Peng Robinson Dry Steam Group Description = Water materials which use the Peng Robinson equation \ of state. Suitable for dry steam modelling. END MATERIAL GROUP: Peng Robinson Wet Hydrocarbons Group Description = Common hydrocarbons which use the Peng Robinson \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Peng Robinson Wet Refrigerants Group Description = Common refrigerants which use the Peng Robinson \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Peng Robinson Wet Steam Group Description = Water materials which use the Peng Robinson equation \ of state. Suitable for condensing steam modelling. END MATERIAL GROUP: Real Gas Combustion Group Description = Real gas materials which can be use for gas phase \ combustion. Ideal gas specific heat coefficients are specified using \ the NASA SP273 format. END MATERIAL GROUP: Redlich Kwong Dry Hydrocarbons Group Description = Common hydrocarbons which use the Redlich Kwong \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Redlich Kwong Dry Refrigerants Group Description = Common refrigerants which use the Redlich Kwong \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Redlich Kwong Dry Steam Group Description = Water materials which use the Redlich Kwong equation \ of state. Suitable for dry steam modelling. END MATERIAL GROUP: Redlich Kwong Wet Hydrocarbons Group Description = Common hydrocarbons which use the Redlich Kwong \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Redlich Kwong Wet Refrigerants Group Description = Common refrigerants which use the Redlich Kwong \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Redlich Kwong Wet Steam Group Description = Water materials which use the Redlich Kwong equation \ of state. Suitable for condensing steam modelling. END MATERIAL GROUP: Soave Redlich Kwong Dry Hydrocarbons Group Description = Common hydrocarbons which use the Soave Redlich Kwong \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Soave Redlich Kwong Dry Refrigerants Group Description = Common refrigerants which use the Soave Redlich Kwong \ equation of state. Suitable for dry real gas models. END MATERIAL GROUP: Soave Redlich Kwong Dry Steam Group Description = Water materials which use the Soave Redlich Kwong \ equation of state. Suitable for dry steam modelling. END MATERIAL GROUP: Soave Redlich Kwong Wet Hydrocarbons Group Description = Common hydrocarbons which use the Soave Redlich Kwong \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Soave Redlich Kwong Wet Refrigerants Group Description = Common refrigerants which use the Soave Redlich Kwong \ equation of state. Suitable for condensing real gas models. END MATERIAL GROUP: Soave Redlich Kwong Wet Steam Group Description = Water materials which use the Soave Redlich Kwong \ equation of state. Suitable for condensing steam modelling. END MATERIAL GROUP: Soot Group Description = Solid substances that can be used when performing \ soot modelling END MATERIAL GROUP: User Group Description = Materials that are defined by the user END MATERIAL GROUP: Water Data Group Description = Liquid and vapour water materials with constant \ properties. Can be combined with NASA SP273 materials for combustion \ modelling. END MATERIAL GROUP: Wet Peng Robinson Group Description = Materials with properties specified using the built \ in Peng Robinson equation of state. Suitable for wet real gas modelling. END MATERIAL GROUP: Wet Redlich Kwong Group Description = Materials with properties specified using the built \ in Redlich Kwong equation of state. Suitable for wet real gas modelling. END MATERIAL GROUP: Wet Soave Redlich Kwong Group Description = Materials with properties specified using the built \ in Soave Redlich Kwong equation of state. Suitable for wet real gas \ modelling. END MATERIAL GROUP: Wet Steam Group Description = Materials with properties specified using the IAPWS \ equation of state. Suitable for wet steam modelling. END MATERIAL: Air Ideal Gas Material Description = Air Ideal Gas (constant Cp) Material Group = Air Data, Calorically Perfect Ideal Gases Option = Pure Substance Thermodynamic State = Gas PROPERTIES: Option = General Material EQUATION OF STATE: Molar Mass = 28.96 [kg kmol^1] Option = Ideal Gas END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 1.0044E+03 [J kg^1 K^1] Specific Heat Type = Constant Pressure END REFERENCE STATE: Option = Specified Point Reference Pressure = 1 [atm] Reference Specific Enthalpy = 0. [J/kg] Reference Specific Entropy = 0. [J/kg/K] Reference Temperature = 25 [C] END DYNAMIC VISCOSITY: Dynamic Viscosity = 1.831E05 [kg m^1 s^1] Option = Value END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 2.61E2 [W m^1 K^1] END ABSORPTION COEFFICIENT: Absorption Coefficient = 0.01 [m^1] Option = Value END SCATTERING COEFFICIENT: Option = Value Scattering Coefficient = 0.0 [m^1] END REFRACTIVE INDEX: Option = Value Refractive Index = 1.0 [m m^1] END END END MATERIAL: Air at 25 C Material Description = Air at 25 C and 1 atm (dry) Material Group = Air Data,Constant Property Gases Option = Pure Substance Thermodynamic State = Gas PROPERTIES: Option = General Material EQUATION OF STATE: Density = 1.2 [kg m^3] Molar Mass = 28.96 [kg kmol^1] Option = Value END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 1.0044E+03 [J kg^1 K^1] Specific Heat Type = Constant Pressure END REFERENCE STATE: Option = Specified Point Reference Pressure = 1 [atm] Reference Specific Enthalpy = 0. [J/kg] Reference Specific Entropy = 0. [J/kg/K] Reference Temperature = 20 [C] END DYNAMIC VISCOSITY: Dynamic Viscosity = 1.831E05 [kg m^1 s^1] Option = Value END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 2.61E02 [W m^1 K^1] END ABSORPTION COEFFICIENT: Absorption Coefficient = 0.01 [m^1] Option = Value END SCATTERING COEFFICIENT: Option = Value Scattering Coefficient = 0.0 [m^1] END REFRACTIVE INDEX: Option = Value Refractive Index = 1.0 [m m^1] END THERMAL EXPANSIVITY: Option = Value Thermal Expansivity = 0.003356 [K^1] END END END MATERIAL: Aluminium Material Group = CHT Solids, Particle Solids Option = Pure Substance Thermodynamic State = Solid PROPERTIES: Option = General Material EQUATION OF STATE: Density = 2702 [kg m^3] Molar Mass = 26.98 [kg kmol^1] Option = Value END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 9.03E+02 [J kg^1 K^1] END REFERENCE STATE: Option = Specified Point Reference Specific Enthalpy = 0 [J/kg] Reference Specific Entropy = 0 [J/kg/K] Reference Temperature = 25 [C] END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 237 [W m^1 K^1] END END END MATERIAL: Copper Material Group = CHT Solids, Particle Solids Option = Pure Substance Thermodynamic State = Solid PROPERTIES: Option = General Material EQUATION OF STATE: Density = 8933 [kg m^3] Molar Mass = 63.55 [kg kmol^1] Option = Value END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 3.85E+02 [J kg^1 K^1] END REFERENCE STATE: Option = Specified Point Reference Specific Enthalpy = 0 [J/kg] Reference Specific Entropy = 0 [J/kg/K] Reference Temperature = 25 [C] END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 401.0 [W m^1 K^1] END END END MATERIAL: Soot Material Group = Soot Option = Pure Substance Thermodynamic State = Solid PROPERTIES: Option = General Material EQUATION OF STATE: Density = 2000 [kg m^3] Molar Mass = 12 [kg kmol^1] Option = Value END REFERENCE STATE: Option = Automatic END ABSORPTION COEFFICIENT: Absorption Coefficient = 0 [m^1] Option = Value END END END MATERIAL: Steel Material Group = CHT Solids, Particle Solids Option = Pure Substance Thermodynamic State = Solid PROPERTIES: Option = General Material EQUATION OF STATE: Density = 7854 [kg m^3] Molar Mass = 55.85 [kg kmol^1] Option = Value END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 4.34E+02 [J kg^1 K^1] END REFERENCE STATE: Option = Specified Point Reference Specific Enthalpy = 0 [J/kg] Reference Specific Entropy = 0 [J/kg/K] Reference Temperature = 25 [C] END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 60.5 [W m^1 K^1] END END END MATERIAL: Water Material Description = Water (liquid) Material Group = Water Data,Constant Property Liquids Option = Pure Substance Thermodynamic State = Liquid PROPERTIES: Option = General Material EQUATION OF STATE: Density = 1000 [kg m^3] Molar Mass = 18.02 [kg kmol^1] Option = Value END REFERENCE STATE: Option = Specified Point Reference Pressure = 1 [atm] Reference Specific Enthalpy = 0.0 [J/kg] Reference Specific Entropy = 0.0 [J/kg/K] Reference Temperature = 20 [C] END DYNAMIC VISCOSITY: Dynamic Viscosity = 0.001002 [kg m^1 s^1] Option = Value END ABSORPTION COEFFICIENT: Absorption Coefficient = 1.0 [m^1] Option = Value END SCATTERING COEFFICIENT: Option = Value Scattering Coefficient = 0.0 [m^1] END REFRACTIVE INDEX: Option = Value Refractive Index = 1.0 [m m^1] END END END MATERIAL: Water Ideal Gas Material Description = Water Vapour Ideal Gas (100 C and 1 atm) Material Group = Calorically Perfect Ideal Gases, Water Data Option = Pure Substance Thermodynamic State = Gas PROPERTIES: Option = General Material EQUATION OF STATE: Molar Mass = 18.02 [kg kmol^1] Option = Ideal Gas END SPECIFIC HEAT CAPACITY: Option = Value Specific Heat Capacity = 2080.1 [J kg^1 K^1] Specific Heat Type = Constant Pressure END REFERENCE STATE: Option = Specified Point Reference Pressure = 1.014 [bar] Reference Specific Enthalpy = 0. [J/kg] Reference Specific Entropy = 0. [J/kg/K] Reference Temperature = 100 [C] END DYNAMIC VISCOSITY: Dynamic Viscosity = 9.4E06 [kg m^1 s^1] Option = Value END THERMAL CONDUCTIVITY: Option = Value Thermal Conductivity = 193E04 [W m^1 K^1] END ABSORPTION COEFFICIENT: Absorption Coefficient = 1.0 [m^1] Option = Value END SCATTERING COEFFICIENT: Option = Value Scattering Coefficient = 0.0 [m^1] END REFRACTIVE INDEX: Option = Value Refractive Index = 1.0 [m m^1] END END END END FLOW: Flow Analysis 1 SOLUTION UNITS: Angle Units = [rad] Length Units = [m] Mass Units = [kg] Solid Angle Units = [sr] Temperature Units = [K] Time Units = [s] END ANALYSIS TYPE: Option = Transient EXTERNAL SOLVER COUPLING: Option = None END INITIAL TIME: Option = Automatic with Value Time = 0 [s] END TIME DURATION: Option = Total Time Total Time = 1 [s] END TIME STEPS: Option = Timesteps Timesteps = 0.01 [s] END END DOMAIN: Default Domain Coord Frame = Coord 0 Domain Type = Fluid Location = B16 BOUNDARY: Inlet1 Boundary Type = INLET Location = Inlet1 BOUNDARY CONDITIONS: FLOW DIRECTION: Option = Zero Gradient END FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Static Pressure Relative Pressure = Boundary Pressure END END END BOUNDARY: Inlet2 Boundary Type = INLET Location = Inlet2 BOUNDARY CONDITIONS: FLOW DIRECTION: Option = Zero Gradient END FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Static Pressure Relative Pressure = Boundary Pressure END END END BOUNDARY: Outlet1 Boundary Type = OUTLET Location = Outlet1 BOUNDARY CONDITIONS: FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Cartesian Velocity Components U = Boundary X Velocity V = Boundary Y Velocity W = 0 [m s^1] END END END BOUNDARY: Outlet2 Boundary Type = OUTLET Location = Outlet2 BOUNDARY CONDITIONS: FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Cartesian Velocity Components U = Boundary X Velocity V = Boundary Y Velocity W = 0 [m s^1] END END END BOUNDARY: Wall Boundary Type = WALL Location = F17.16,F18.16 BOUNDARY CONDITIONS: MASS AND MOMENTUM: Option = No Slip Wall END END END DOMAIN MODELS: BUOYANCY MODEL: Option = Non Buoyant END DOMAIN MOTION: Option = Stationary END MESH DEFORMATION: Option = None END REFERENCE PRESSURE: Reference Pressure = 1 [atm] END END FLUID DEFINITION: Water Material = Water Option = Material Library MORPHOLOGY: Option = Continuous Fluid END END FLUID MODELS: COMBUSTION MODEL: Option = None END HEAT TRANSFER MODEL: Option = None END THERMAL RADIATION MODEL: Option = None END TURBULENCE MODEL: Option = Laminar END END END INITIALISATION: Option = Automatic INITIAL CONDITIONS: Velocity Type = Cartesian CARTESIAN VELOCITY COMPONENTS: Option = Automatic with Value U = Initial X Velocity V = Initial Y Velocity W = 0 [m s^1] END STATIC PRESSURE: Option = Automatic with Value Relative Pressure = Initial Pressure END END END OUTPUT CONTROL: RESULTS: File Compression Level = Default Option = Standard END END SOLVER CONTROL: ADVECTION SCHEME: Option = High Resolution END CONVERGENCE CONTROL: Maximum Number of Coefficient Loops = 10 Minimum Number of Coefficient Loops = 1 Timescale Control = Coefficient Loops END CONVERGENCE CRITERIA: Residual Target = 1.E4 Residual Type = RMS END TRANSIENT SCHEME: Option = Second Order Backward Euler TIMESTEP INITIALISATION: Option = Automatic END END END END COMMAND FILE: Version = 13.0 END 
I tried to run CFX solution and the system showed the error message:
Error! The CFX Solver for system Fluid Flow (CFX) did not produce a results file. Detailed information can be found in the output file for the run, which can be viewed by selecting Display Monitors from the Solution component. C5 Does this mean there are still problems in my CFXPre? Thank you. 
That is a workbench error message. You need to look in the output file to see the detail of the error.

Dear Glenn,
I will check my output file. Thank you very much. I appreciate your help. 
All times are GMT 4. The time now is 17:28. 