3 Dimensional User Function
Dear All,
I am trying to import 3 dimensional data into user function in CFX-Pre. my data is like below: X,Y,Z,Velocity 1,2,4,0.2 ..... I got the following error after importing data. ERROR Incorrect number of arguments specified in CEL FUNCTION 'Function 1'. Expected number: 3; actual: 1. Please let me know where the problem is from. Thank you. Kind regards, AshtonJ |
Make sure the header in the file is in a format similar to this:
Code:
[Name] |
Thank you.
I arranged the data in following format. [Name] VelocityMag [Spatial Fields] x,y,z [Data] 1,2,2,0.2 Then, I tried to import the data into User function with three dimensional option. It gave the following error: 3 Data item() could not be read as a number. Please help me to fix this. Thank you. Kind regards, ashkan |
You misunderstood, make sure the header is in the format I suggested. Then your file would look something like:
Code:
[Name] |
3 Dimensional User Function
Sorry for bumping a 3 years old thread, I arranged a 3d data in following format(as Mr. lance suggested):
[Name] myname [Spatial Fields] x,y,z [Data] x [ m ], y [ m ], z [ m ], Velocity [ m/s ] 1,11,12,20 12,11,12,20 15,13,14,18 but it gave the following error: "1 Data item() could not be read as a number." then I decided to define it without importing data as shown in the attached image, but then it gave the following error: "ERROR Incorrect number of arguments specified in CEL FUNCTION 'Function 1'. Expected number: 3; actual: 1." Please help me to fix this.:confused: image address: http://www.tinypic.com/view.php?pic=sxnq6r&s=8#.U3MeOFfG21t |
Before you accuse CFX of having a bug - have you done the basic checks?
Have you checked your carriage returns are correct (Linux versus Windows)? Have you confirmed that there is a carriage return after the last line? Have you tried it with another data set? |
Hi Mr. Horrocks,
Thanks for your attention; I really appreciate your help. just now i have solved my problem,:o there were two mistakes in my previous work: 1- Imported text file should not have any header. 2- I should define units for every argument (m, m, m) in "Argument units field" best regards, Mehdi |
All times are GMT -4. The time now is 10:07. |