|
[Sponsors] |
Trying to input a .csv file as a profile data |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2019, 16:28 |
Trying to input a .csv file as a profile data
|
#1 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
Hello
I am working on a conjugate heat transfer model using Maxwell and CFX. Maxwell i am using to determine the ohmic losses of a conductor and then using those losses and the heat input into the system of the conductor in a box. My question pertains to an error i am getting once i try to input these losses as a .csv file. CFX gives me an error that i do not know how to solve. i read other threads on here but could not fix my issues after reading them. I attached both a snip of the error and mu .csv excel file. Thank you for your help, i appreciate it. Last edited by Dacaptain1615; July 10, 2019 at 11:14. |
|
July 9, 2019, 19:52 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Remove the _ from the [Name], i.e. Current Inlet 1
|
|
July 10, 2019, 09:23 |
|
#3 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
Thank you for the suggestion opaque, but i had already tried that before.
|
|
July 10, 2019, 10:17 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
It seems a small file.
Could you attach it to the thread? or copy/paste the full file in the thread? |
|
July 10, 2019, 11:31 |
|
#5 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
I tried uploading the file but the file was way too big. it had about 250k rows of data. i uploaded a truncated version.
|
|
July 10, 2019, 12:02 |
|
#6 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Seen this before with Excel. It saves the file assuming all the rows have the same number of columns, and it adds several commas for the missing columns.
Open the file in Wordpad/Notepad or any text editor, remove the commas after the section header, i.e. [Name], [Spatial Fields], [Data], etc. Another advice, be careful with Excel floating point format. You may have a .csv file with several significant digits, and Excel with truncate your values to two/three significant digits by default (depending on your preferences if I recall) Summary: careful with Excel when editing .csv files for ANSYS CFX |
|
July 10, 2019, 12:51 |
|
#7 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
I see, the format i am using in excel is wrong in some way. Maxwell outputs the data in a .fld ( field file) and i need a .csv in CFX. Is there another way to easily convert between these different file formats? other than excel,
I also opened the files in notepad and removed the extra commas, attached a picture below and i am still receiving the same error. |
|
July 10, 2019, 13:46 |
|
#8 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
I removed the commas, and it worked for me.
Could you attach the latest version? and post the latest error message? |
|
July 10, 2019, 15:51 |
|
#9 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
yea here it is, the error message is the same as the initial error i was getting before. can you also upload the one that you did so that i can see the difference between your and mine. I might just take the one you did and paste the data for all my parts below that.
|
|
July 10, 2019, 16:35 |
|
#10 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Uploading mine will not help you much since you will not know what is happening on your side.
Something is not standard on how the file was saved. If I open it in Notepad, minor modification, saved it and reload I get same error However, if I open it in Wordpad, same minor modification, saved it and reload the error goes away. How are you editing the file, which editor? |
|
July 10, 2019, 17:07 |
|
#11 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
I am using Notepad.
|
|
July 10, 2019, 17:28 |
|
#12 |
New Member
orvy
Join Date: Jul 2019
Posts: 7
Rep Power: 7 |
OMG that completely fixed it. it was notepad this entire time, cause i previously removed those extra commas on notepad before you said that it can be an issue and saved it as a .csv. but now that i did it in wordpad it worked.
You are the best, thank you for all your help. you just fixed 2 days of frustration not knowing what was wrong. |
|
June 4, 2022, 16:53 |
|
#13 | |
Member
Join Date: Apr 2020
Posts: 76
Rep Power: 6 |
Hello
I am trying to import coordinates for a point cloud in CFD-post. See the CSV file in the image. However, I keep getting an error when I try to import. Could you please suggest how can I fix this? None of the solutions described above solved my problem, hence posting this. Thank you Quote:
|
||
June 4, 2022, 21:02 |
|
#14 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
You are using an incomplete mixed format for import
Either delete the [Data] section, or add the [Name] and [Spatial Fields] section For example, X [m], Y [m], Z[m] .. .. or [Name] MyPointCloud [Spatial Fields] X, Y, Z [Data] X [m], Y [m], Z[m] .. .. The last one should import in CFX-Pre if additional data columns are provided. If I recall CFD-Post should import both formats.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
June 5, 2022, 08:49 |
|
#15 | |
Member
Join Date: Apr 2020
Posts: 76
Rep Power: 6 |
Hi
Thanks for your answer, but I still get this error (see image). Quote:
|
||
November 7, 2022, 09:09 |
|
#16 |
Member
Join Date: Apr 2020
Posts: 76
Rep Power: 6 |
Hello
Does anyone know how to resolve this? Will greatly appreciate your help. I am just trying to extract data (in CFD-post) from a list of user input points (.csv file etc.). Thank you |
|
November 7, 2022, 17:34 |
|
#17 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
Isn't the file format fully described in the documentation? See CFD-Post documentation section 8.8.1.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 7, 2022, 18:52 |
|
#18 | |
Member
Join Date: Apr 2020
Posts: 76
Rep Power: 6 |
Quote:
Thanks for your comment. I have seen the document but it is not clear. I posted the question in another forum with my sample .csv file, but it did not load. Can you please share one if you have? Thank you |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |