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

Import .csv - velocity profile - error

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Opaque
  • 1 Post By Opaque
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2021, 08:05
Default Import .csv - velocity profile - error
  #1
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hello guys,

my problem:
I ve got a metro fan simulation. Now I need to simulate the tunnel, with the fan inside, but in a seperated simulation. So I want to take the velocity profile of the fan-simulation, and import it in the new tunnel-simulation. So the fan-outlet will be my new tunnel-inlet.

idea:
after reading a lot of posts, I got an export file (.csv) from the POST, this file I can easely import back into POST, but I think I will need it at the PRE, to start the simulation?!
(BC Profile)
--------------------------------------
(How to create a USER (planar) SURFACE

>>I m confused because he imported it back to the POST)
---------------------------------------


So I tried to create an user surface in PRE
>Tools > Initialize Profile Data

This Error occures:
"The DataFile could not be initialized as a profile: Non-unique field names seen in profile `iso31`at line 8."

The name of the surface in the export file is actual iso31. I tried a lot of different names, everytime I got this error. The name of my component (named in DesignModeler) is "fanOutlet".
I tried to name my new created boundary (PRE - where the profile is) as fanOutlet, iso31, and another names. Nothing will work.

Maybe I m totally wrong how I set the profile up? I m lost. Thanks for every help.
eSKa is offline   Reply With Quote

Old   March 26, 2021, 10:22
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
Here is my understanding of the process:
1 - Load your previous results file (source for the export)
2 - Go to File/Export panel
3 - Select BC Profile instead of Generic
4 - Select the type of profile boundary condition you want to apply in the next simulation
5 - Though not necessary, selecting the Face connectivity will improve things downstream (see later)

Then, in CFX-Pre, after you have loaded your mesh, you can
6 - Open the Tools/Initialize Profile Data panel
7 - Select your previously exported profile
8 - Apply, and you should see a new Function being listed in the Outline view.
9 - Optionally, if you made it this far, the function should have a toggle which allows you to display the profile in the viewer and you can verify it overlaps with the boundary of interest. If it does not read below

In case a profile is not aligned with the boundary of interest,
10 - Open the Tools/Edit Profile Data panel
11 - Select the previously exported profile
12 - Create a/several geometric transformations to align the profile. If you keep the panel open, select visibility, and press Apply you can preview the transformed profile until it aligns where you want it. Once done, close the panel.

Hope the above helps,
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 26, 2021, 11:06
Default
  #3
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi.

Thank You for this great introduction. Till point 7 I m done. Then at point 8 this error occures. It must be something with the chosen name I think?!
But different names without any common ground doesn t work also.
Because of this error I m never in a position to have my user interface.

Later at home I will try it with another file. Thank you for the steps. They show me that I m on the right way.
eSKa is offline   Reply With Quote

Old   March 26, 2021, 11:16
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
Please copy the first few lines of your .csv file for us to see, i.e. the header section.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 26, 2021, 12:48
Default
  #5
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9
aero_head is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Please copy the first few lines of your .csv file for us to see, i.e. the header section.
Agreed. The same thing has happened to me when the names were incorrect. The header section names must match EXACTLY what the program is expecting (i.e. match the output names), with not leading spaces.
aero_head is offline   Reply With Quote

Old   March 26, 2021, 18:42
Default
  #6
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
-------------------------------------------------------------------
[Name]
iso31

[Spatial Fields]
x, y, z

[Data]
x [ m ], y [ m ], z [ m ], Absolute Pressure [ Pa ], Approximated Mass Flow [ kg s^-1 ], Area [ m^2 ], Aspect Ratio, Axial Direction, Axial Direction X, Axial Direction Y, Axial Direction Z, Axial Distance [ m ], Circumferential Band Number, Connectivity Number, Courant Number, Density [ kg m^-3 ], Density.Beta, Density.Gradient [ kg m^-4 ], Density.Gradient X [ kg m^-4 ], Density.Gradient Y [ kg m^-4 ], Density.Gradient Z [ kg m^-4 ], Dynamic Viscosity [ Pa s ], Eddy Viscosity [ Pa s ], Edge Length Ratio, Element Volume Ratio, First Blending Function for BSL and SST model, Force [ N ], Force X [ N ], Force Y [ N ], Force Z [ N ], Interpolated Mass Flow [ kg s^-1 ], Isothermal Compressibility [ Pa^-1 ], K TurbKE M.Residual, K TurbKE R1.Residual, K TurbKE S1.Residual, K TurbKE S2.Residual, Length [ m ], Local Speed of Sound [ m s^-1 ], Mach Number, Mach Number in Stn Frame, Mass Flow [ kg s^-1 ], Maximum Face Angle [ degree ], Mesh Expansion Factor, Minimum Face Angle [ degree ], Nonoverlap Fraction, Normal, Normal X, Normal Y, Normal Z, O TurbFreq M.Residual, O TurbFreq R1.Residual, O TurbFreq S1.Residual, O TurbFreq S2.Residual, Orthogonality Angle [ degree ], P Mass M.Residual, P Mass R1.Residual, P Mass S1.Residual, P Mass S2.Residual, Pressure [ Pa ], Pressure.Gradient [ kg m^-2 s^-2 ], Pressure.Gradient X [ kg m^-2 s^-2 ], Pressure.Gradient Y [ kg m^-2 s^-2 ], Pressure.Gradient Z [ kg m^-2 s^-2 ], Radial Direction, Radial Direction X, Radial Direction Y, Radial Direction Z, Radius [ m ], Real Partition Number, Rotation Velocity [ m s^-1 ], Rotation Velocity X [ m s^-1 ], Rotation Velocity Y [ m s^-1 ], Rotation Velocity Z [ m s^-1 ], Second Blending Function for SST model, Shear Strain Rate [ s^-1 ], Solver Yplus, Specific Heat Capacity at Constant Pressure [ J kg^-1 K^-1 ], Specific Heat Capacity at Constant Volume [ J kg^-1 K^-1 ], Specific Volume [ kg^-1 m^3 ], Static Enthalpy [ J kg^-1 ], Static Entropy [ J kg^-1 K^-1 ], Temperature [ K ], Thermal Conductivity [ W m^-1 K^-1 ], Theta [ degree ], Theta Direction, Theta Direction X, Theta Direction Y, Theta Direction Z, Total Pressure [ Pa ], Total Pressure in Rel Frame [ Pa ], Total Pressure in Stn Frame [ Pa ], Turbulence Eddy Dissipation [ m^2 s^-3 ], Turbulence Eddy Frequency [ s^-1 ], Turbulence Eddy Frequency.Beta, Turbulence Eddy Frequency.Gradient [ m^-1 s^-1 ], Turbulence Eddy Frequency.Gradient X [ m^-1 s^-1 ], Turbulence Eddy Frequency.Gradient Y [ m^-1 s^-1 ], Turbulence Eddy Frequency.Gradient Z [ m^-1 s^-1 ], Turbulence Kinetic Energy [ m^2 s^-2 ], Turbulence Kinetic Energy.Beta, Turbulence Kinetic Energy.Gradient [ m s^-2 ], Turbulence Kinetic Energy.Gradient X [ m s^-2 ], Turbulence Kinetic Energy.Gradient Y [ m s^-2 ], Turbulence Kinetic Energy.Gradient Z [ m s^-2 ], U Mom M.Residual, U Mom R1.Residual, U Mom S1.Residual, U Mom S2.Residual, V Mom M.Residual, V Mom R1.Residual, V Mom S1.Residual, V Mom S2.Residual, Velocity [ m s^-1 ], Velocity Axial [ m s^-1 ], Velocity Circumferential [ m s^-1 ], Velocity in Stn Frame [ m s^-1 ], Velocity in Stn Frame Circumferential [ m s^-1 ], Velocity in Stn Frame u [ m s^-1 ], Velocity in Stn Frame u.Beta, Velocity in Stn Frame u.Gradient [ s^-1 ], Velocity in Stn Frame u.Gradient X [ s^-1 ], Velocity in Stn Frame u.Gradient Y [ s^-1 ], Velocity in Stn Frame u.Gradient Z [ s^-1 ], Velocity in Stn Frame v [ m s^-1 ], Velocity in Stn Frame v.Beta, Velocity in Stn Frame v.Gradient [ s^-1 ], Velocity in Stn Frame v.Gradient X [ s^-1 ], Velocity in Stn Frame v.Gradient Y [ s^-1 ], Velocity in Stn Frame v.Gradient Z [ s^-1 ], Velocity in Stn Frame w [ m s^-1 ], Velocity in Stn Frame w.Beta, Velocity in Stn Frame w.Gradient [ s^-1 ], Velocity in Stn Frame w.Gradient X [ s^-1 ], Velocity in Stn Frame w.Gradient Y [ s^-1 ], Velocity in Stn Frame w.Gradient Z [ s^-1 ], Velocity Meridional [ m s^-1 ], Velocity Meridional X [ m s^-1 ], Velocity Meridional Y [ m s^-1 ], Velocity Meridional Z [ m s^-1 ], Velocity Radial [ m s^-1 ], Velocity u [ m s^-1 ], Velocity u.Beta, Velocity u.Gradient [ s^-1 ], Velocity u.Gradient X [ s^-1 ], Velocity u.Gradient Y [ s^-1 ], Velocity u.Gradient Z [ s^-1 ], Velocity v [ m s^-1 ], Velocity v.Beta, Velocity v.Gradient [ s^-1 ], Velocity v.Gradient X [ s^-1 ], Velocity v.Gradient Y [ s^-1 ], Velocity v.Gradient Z [ s^-1 ], Velocity w [ m s^-1 ], Velocity w.Beta, Velocity w.Gradient [ s^-1 ], Velocity w.Gradient X [ s^-1 ], Velocity w.Gradient Y [ s^-1 ], Velocity w.Gradient Z [ s^-1 ], Velocity.Absolute Helicity [ m s^-2 ], Velocity.Curl [ s^-1 ], Velocity.Curl X [ s^-1 ], Velocity.Curl Y [ s^-1 ], Velocity.Curl Z [ s^-1 ], Velocity.Divergence [ s^-1 ], Velocity.Helicity [ m s^-2 ], Velocity.Invariant Q [ s^-2 ], Velocity.Lambda 2 [ s^-2 ], Velocity.Normal Eigen Helicity [ s^-1 ], Velocity.Real Eigen Helicity [ s^-1 ], Velocity.Real Eigenvalue [ s^-1 ], Velocity.Stretched Swirling Strength, Velocity.Swirling Discriminant [ s^-6 ], Velocity.Swirling Normal [ s^-1 ], Velocity.Swirling Normal X [ s^-1 ], Velocity.Swirling Normal Y [ s^-1 ], Velocity.Swirling Normal Z [ s^-1 ], Velocity.Swirling Strength [ s^-1 ], Velocity.Swirling Vector [ s^-1 ], Velocity.Swirling Vector X [ s^-1 ], Velocity.Swirling Vector Y [ s^-1 ], Velocity.Swirling Vector Z [ s^-1 ], Volume [ m^3 ], Volume of Finite Volumes [ m^3 ], Volume Porosity, W Mom M.Residual, W Mom R1.Residual, W Mom S1.Residual, W Mom S2.Residual, Wall Distance [ m ], Wall Heat Flux [ W m^-2 ], Wall Scale [ m^2 ], Wall Scale.Gradient [ m ], Wall Scale.Gradient X [ m ], Wall Scale.Gradient Y [ m ], Wall Scale.Gradient Z [ m ], Wall Shear [ Pa ], Wall Shear X [ Pa ], Wall Shear Y [ Pa ], Wall Shear Z [ Pa ], x [ m ], y [ m ], Yplus, z [ m ]


----------------------------------------------------

The first 8 lines. I never changed there something, this is how the Post exported it.
eSKa is offline   Reply With Quote

Old   March 29, 2021, 13:02
Default
  #7
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
It seems you multi-selected everything in the export panel.

What is the purpose of that? only the columns you refer to in the new setup are worth exporting, everything is a waste of disk space, reading cost when looking for other columns, and stress testing the system at your own cost.
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 30, 2021, 06:37
Default
  #8
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi,

I only need the velocity profile, with all the important values (squirl, e.g.). At least I thought it would be save to take all properties, to be safe.
I m not so sure, which properties I can check off.
eSKa is offline   Reply With Quote

Old   March 30, 2021, 06:44
Default
  #9
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
When you define the export, there should be a setting for the type of boundary condition you plan to use in the next simulation.

That setting will export exactly what you need, nothing else.

Keep in mind that Velocity can be exported for a Total Pressure + Direction inlet type boundary condition, the ANSYS CFX Solver will normalize the vector for you.
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   April 3, 2021, 14:38
Default
  #10
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi. Now it worked. I took the bc profile and the inlet velocity component.

Don t know why the export doesnt work with all values. I my case the velocity is enough.

Thank you so much for the help.
eSKa 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
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 19:11
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 07:35
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 12:39
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:07
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 00:29.