CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF gives an empty file !!

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2015, 18:35
Default
  #21
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12
Saidul is on a distinguished road
Yes, I did and that is why, there is no way to overwrite the data in a same file. Every time I changed the name of the file. Could you please give me any idea what is happening?

Thanks a lot.

Quote:
Originally Posted by pakk View Post
Do you remove "Z:\\dpm_coordinates_10feb_xyz.txt" every time before you start the simulation?
Saidul is offline   Reply With Quote

Old   February 11, 2015, 05:47
Default
  #22
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I have no idea.

If you did what I expect you did, it is very strange. But let me summarize what I think you did, to see if I understand it correctly.

- You have a Fluent case, where the flow solution has already converged.
- In that case, you added an injection on an inlet, that has 1054 faces. (You said "nodes", but if you choose "surface" for injection, Fluent uses face centers.)
- You compiled the UDF you showed before.
- You set the dpm-boundary condition of some walls to "dpm_coordinates_10feb". No other boundary was set to "trap".
- You made sure the text file was empty/not existing.
- You went to "graphics and animations" - "Particle tracks"
- You selected the injection you added, and tracked the particles.
- Fluent gave a message that 1054 particles were released, and 156 were trapped. The other 998 were either escaped, or unfinished.
- You opened the text files that were being written to (Z:\\dpm_coordinates_10feb_xyz.txt and the other one.)
- That text file should have 156 lines, but instead you see many more.

Are these the steps you took? If not, please describe your steps in the same detail.
pakk is offline   Reply With Quote

Old   February 11, 2015, 19:02
Default
  #23
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12
Saidul is on a distinguished road
Hello,
I did almost same thing. I used "surface" for injection type and release from surface is "inlet". Yes, it seems very strange. Can I send you my cas file, then you can have a look. If I set the boundary condition as "trap" (without UDF) then it show how many particles are trapped. When I compile the UDF and activate it, console shows how many particle aborted. But the file gives lots of coordinates.

Thank you very much for your help.

Saidul

Quote:
Originally Posted by pakk View Post
I have no idea.

If you did what I expect you did, it is very strange. But let me summarize what I think you did, to see if I understand it correctly.

- You have a Fluent case, where the flow solution has already converged.
- In that case, you added an injection on an inlet, that has 1054 faces. (You said "nodes", but if you choose "surface" for injection, Fluent uses face centers.)
- You compiled the UDF you showed before.
- You set the dpm-boundary condition of some walls to "dpm_coordinates_10feb". No other boundary was set to "trap".
- You made sure the text file was empty/not existing.
- You went to "graphics and animations" - "Particle tracks"
- You selected the injection you added, and tracked the particles.
- Fluent gave a message that 1054 particles were released, and 156 were trapped. The other 998 were either escaped, or unfinished.
- You opened the text files that were being written to (Z:\\dpm_coordinates_10feb_xyz.txt and the other one.)
- That text file should have 156 lines, but instead you see many more.

Are these the steps you took? If not, please describe your steps in the same detail.
Saidul 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] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 18:55.