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

Declare a zone/thread as a liquid

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2016, 11:11
Unhappy
  #21
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Quote:
Originally Posted by pakk View Post
I really want to help you. But I can not see what is shown on your screen...

What you should do:
1. Open Fluent.
2. Load your model.
3. Go to the user-defined-functions, compilation option.
4. Select your source file.
5. Click 'build'.
6. Select the text shown in the text user interface.
7. Press control and C.
8. Go to this screen, and click 'reply'.
9. Press control and V.
10. Click 'Submit reply'.

If you don't do this, I can not help you.
Good day sir,

What does it mean by step number 6?

Thank you
cik mimi is offline   Reply With Quote

Old   April 7, 2016, 11:17
Default
  #22
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
If you open Fluent, you see:

- On the left, a menu (Setup, Solution, Results...)
- On the upper right, the graphical interface, where you normally see the results.
- On the lower right, a box with text. That one is the Text user interface.

When I start it, it shows:
Code:
Welcome to ANSYS Fluent Release 17.0

Copyright 2015 ANSYS Inc.. All Rights Reserved.
Unauthorized use, distribution or duplication is prohibited.
This product is subject to U.S. laws governing export and re-export.
For full Legal Notice, see documentation.

Build Time: ...
As you do things in Fluent, more text will be shown there. Also something will be shown there after you click 'build'. This is the place where errors will be shown!
cik mimi likes this.
pakk is offline   Reply With Quote

Old   April 8, 2016, 08:05
Default
  #23
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Dear sir,

May I ask, my code has been successfully compiled using

Fluent 6.3.26 and Microsoft Visual Studio C++ 2008. I am opening Fluent 6.3.26 using VS
Windows Prompt ...

However, it cannot work with latest version Fluent Version 16.

May I seek your advice on what's is the matter with Fluent 16 with my Fluent codes...Is my codes is in 32 bits?

Currently I am in progress to
download Visual Studio 2015.

Thank you so much sir.
cik mimi is offline   Reply With Quote

Old   April 8, 2016, 08:09
Default
  #24
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I think I made it more than clear what you need to do before I can help you.
As long as you ignore that, I simply can not help you, so I will ignore you.
pakk is offline   Reply With Quote

Old   April 8, 2016, 08:33
Default
  #25
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
But..I just asking a question
cik mimi is offline   Reply With Quote

Old   April 8, 2016, 08:40
Default
  #26
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
It is not that I don't want to answer you until you show the error.
I can not answer you until you show the error.
cik mimi likes this.
pakk is offline   Reply With Quote

Old   April 10, 2016, 22:15
Default
  #27
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Good day sir,
This is my error shown in the fluent screen

Build Time: Oct 24 2013 12:05:41 Build Id: 10399
Loading "C:\PROGRA~1\ANSYSI~1\v150\fluent\fluent15.0.0\lib \flprim1119-64.dmp"



Cleanup script file is C:\\Users\\shamimi\\cleanup-fluent-Z800-pc-298740.bat

> Copied C:\Users\shamimi\Downloads est case_files\dp0\CODE_SOLIDIFICATION (3).c to libudf\src
Creating user_nt.udf file for 2d ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2d")'nmake' is not recognized as an internal or external command,
operable program or batch file.

Done.
cik mimi is offline   Reply With Quote

Old   April 11, 2016, 02:47
Default
  #28
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Quote:
'nmake' is not recognized as an internal or external command
This means you don't have a compiler installed, or at least Fluent can not find it.

So your problem has nothing to do with your udf code, but with your installation of Fluent. Search for this text on this forum for explanations on how to solve it.
pakk is offline   Reply With Quote

Old   April 11, 2016, 05:02
Default
  #29
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Thank you sir
cik mimi is offline   Reply With Quote

Old   April 13, 2016, 08:56
Default
  #30
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Good day, may I ask, if we can solve th errors, can we directly open the fluent without using the command prompt?
Thank you.
cik mimi is offline   Reply With Quote

Old   April 13, 2016, 09:05
Default
  #31
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I don't understand what you are exactly asking.
You can always start Fluent directly, without using the command prompt. But if you do this, you will not be able to compile.

So, if you would solve all the problems and make a successful compilation of your udf, then you could stop Fluent, restart it without the command prompt, load the compiled version of the UDF, and continue. But if you want to change anything in your UDF, you have to exit Fluent again, and start it again from the command prompt.
pakk is offline   Reply With Quote

Old   April 13, 2016, 09:10
Default
  #32
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Thank you...
My objective is to load a model before do the udf compilation. I see if It works without using cpmmand prompt.
cik mimi is offline   Reply With Quote

Old   April 13, 2016, 09:13
Default
  #33
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Surely you can load the model before you do compilation.
But UDF compilation will not work without command prompt.
pakk is offline   Reply With Quote

Old   April 13, 2016, 09:15
Default
  #34
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Okey.
Maybe I need to modified udf codes, so that it can open normally without command prompt
cik mimi is offline   Reply With Quote

Old   April 13, 2016, 09:19
Default
  #35
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Please read very carefully what I type.

You can not COMPILE a UDF without the command prompt. It does not matter which code is in the UDF, because none of them will work.

You can LOAD a model without the command prompt. Again, it does not matter which code is in the UDF: once your UDF is compiled, you don't need the command prompt any more.
pakk is offline   Reply With Quote

Old   April 14, 2016, 22:43
Default
  #36
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Quote:
Originally Posted by pakk View Post
Please read very carefully what I type.

You can not COMPILE a UDF without the command prompt. It does not matter which code is in the UDF, because none of them will work.

You can LOAD a model without the command prompt. Again, it does not matter which code is in the UDF: once your UDF is compiled, you don't need the command prompt any more.
Okey sir, I try to digest each of your words. If any inquiries, I will in this forum. Thank you for your kind guidance
cik mimi is offline   Reply With Quote

Old   April 19, 2016, 05:48
Default
  #37
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Good day,

May i ask, if the udf code is safely compile with no errors,

is it possible to safely load the model and doing the simulation?

Thank you.
cik mimi is offline   Reply With Quote

Old   April 19, 2016, 05:53
Default
  #38
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
The best way to find out is by trying.

(I don't know what you mean with 'safely'. The worst that can happen is that the simulation will not run.)
pakk is offline   Reply With Quote

Old   April 19, 2016, 05:57
Default
  #39
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Okey, I try it first
cik mimi is offline   Reply With Quote

Old   April 20, 2016, 10:03
Default
  #40
Member
 
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10
cik mimi is on a distinguished road
Good evening sir,

May I ask, I am wondering to download the Microsoft Windows SDK for Windows 7 and .NET Framework 4 because I want to solve for the compilation error says "It does not compatible with the current platform". However, the download is failed in my current Fluent version 16. I have perform a good compilation of the udf code in other computer and is it okey if I just transfer the folder Microsoft Windows SDK packages with just using the pendrive?
Thank you sir.
cik mimi is offline   Reply With Quote

Reply

Tags
#udf #liquid #thread


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
[OpenFOAM.org] OpenFOAM 2.3.x on Mac OS X 10.10.1 Installation Errors Petru OpenFOAM Installation 15 December 29, 2015 12:51
[OpenFOAM.org] OpenFOAM 2.3.1 installation on SUSE Linux Enterprise 12 harsha_kulkarni OpenFOAM Installation 17 November 16, 2015 03:06
[OpenFOAM.org] Installation problem 2.4.0 on Centos 6.6 luke_skywalker OpenFOAM Installation 8 November 13, 2015 08:15
Sgimpi pere OpenFOAM 27 September 24, 2011 07:57
Ld_library_path scottneh OpenFOAM 9 November 21, 2009 09:15


All times are GMT -4. The time now is 14:19.