|
[Sponsors] |
January 9, 2013, 11:12 |
mass fraction gradient macro error
|
#1 |
New Member
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14 |
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 |
|
January 10, 2013, 02:55 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
Do not use C_YI_G(c,t,i), change the parametersk c,t,i to cell, thread and ...
|
|
January 10, 2013, 05:10 |
|
#3 |
New Member
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14 |
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???? |
|
January 10, 2013, 05:11 |
|
#4 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
have you enabled saving gradiants?
set/solve/expert/... |
|
January 10, 2013, 05:54 |
|
#5 |
New Member
Daniel Sebastià Sáez
Join Date: Mar 2012
Posts: 15
Rep Power: 14 |
ummmmm nope. Do I have to do that with a text command??
THanx Daniel |
|
|
|
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 |