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

mass fraction gradient macro error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2013, 11:12
Default mass fraction gradient macro error
  #1
New Member
 
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14
danielet82 is on a distinguished road
Hi there guys,

in my case, I am trying to define a mass transfer coefficient with the following DEFINE macro:

DEFINE_MASS_TRANSFER(liq_gas_source, cell, thread, from_index, from_species_index, to_index, to_species_index)

Inside the UDF I need to define the gradient of the mass fraction of a species with...:

C_YI_G(c,t,i)

When I try to interpret the UDF the next error message appears:

Error: C:/Users/Dani/AppData/Local/Temp/mass_trans_rate.c.7.c: line 14: t: undeclared variable

I think that the fact that "t" doesn't appear in "DEFINE_MASS_TRANSFER(liq_gas_source, cell, thread, from_index, from_species_index, to_index, to_species_index)" has something to do with it.

Does anybody know how can I fix it.

Thanks in advance

Daniel
danielet82 is offline   Reply With Quote

Old   January 10, 2013, 02:55
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
Do not use C_YI_G(c,t,i), change the parametersk c,t,i to cell, thread and ...
msaeedsadeghi is offline   Reply With Quote

Old   January 10, 2013, 05:10
Default
  #3
New Member
 
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14
danielet82 is on a distinguished road
wow, you're the best. It works. I mean no error message appears when it comes to interpret it and you can select it in the UDF list.

The problem arises when it comes to initialize the solution in order to run the solver. The next message appears:

"999999 (..\src\mpsystem.c@1149): mpt_read: failed: errno = 10054

999999: mpt_read: error: read failed trying to read 4 bytes: No such file or directory
MPI Application rank 0 exited before MPI_Finalize() with status -1073741819
The Parallel FLUENT process could not be started. "

Any hint or idea????
danielet82 is offline   Reply With Quote

Old   January 10, 2013, 05:11
Default
  #4
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
have you enabled saving gradiants?
set/solve/expert/...
msaeedsadeghi is offline   Reply With Quote

Old   January 10, 2013, 05:54
Default
  #5
New Member
 
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14
danielet82 is on a distinguished road
ummmmm nope. Do I have to do that with a text command??

THanx

Daniel
danielet82 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[swak4Foam] installing funkySetFields igo OpenFOAM Community Contributions 1 November 20, 2012 21:16
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 11:08.