|
[Sponsors] |
February 10, 2017, 19:36 |
properties change with volume fraction
|
#1 |
New Member
ali sarlak
Join Date: May 2015
Location: iran
Posts: 13
Rep Power: 11 |
hi dear friends
i work on nanofluid using mixture model of fluent. i want to change viscosity using volume fraction so i need udf. can any body help me, i really need it. thanks |
|
February 13, 2017, 05:30 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Look in the Fluent manual for something similar, think about what should be changed, and come here for help to change it.
|
|
February 13, 2017, 08:00 |
|
#3 | |
New Member
ali sarlak
Join Date: May 2015
Location: iran
Posts: 13
Rep Power: 11 |
Quote:
my cod is: #include "udf.h" DEFINE_ADJUST(viscouse_function, d) { real vf; real visc; cell_t cell; Thread **pt; Thread *cell_threads; Domain *mixture_domain; mp_thread_loop_c(cell_threads, mixture_domain, pt[1]) { begin_c_loop(cell,pt[1]) { vf=C_VOF(cell,pt[1]); visc = vf; /*it just example*/ } end_c_loop(cell,pt[1]) } } but it doesnt work. i want to change viscosity with volume fraction did i do a mistake? thanks |
||
February 13, 2017, 08:28 |
|
#4 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
|
||
February 13, 2017, 11:44 |
|
#5 | |
New Member
ali sarlak
Join Date: May 2015
Location: iran
Posts: 13
Rep Power: 11 |
Quote:
Node 0: Process 11020: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 1: Process 10652: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 2: Process 9056: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 3: Process 4044: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 4: Process 10068: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 5: Process 5768: Received signal SIGSEGV. ================================================== ============================ |
||
February 13, 2017, 12:01 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
If it is during initializating, then your problem could be a physics problem, not a programming problem.
You are saying in the UDF that viscosity is proportional to the volume fraction. When you initialize, the volume fraction is probably initialized at zero. So you are asking Fluent to initialize a fluid with zero viscosity (a superfluid). Fluent is not made to do that. Try an equation that will make viscosity not equal to zero, for example: Code:
visc = 0.000008+vf*0.000001; |
|
February 13, 2017, 12:31 |
|
#7 | |
New Member
ali sarlak
Join Date: May 2015
Location: iran
Posts: 13
Rep Power: 11 |
Quote:
i just do it but the error still remain. |
||
Tags |
mixture, properties, udf, volume fraction. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
Difference between Volume Fraction and Mass Fraction in CEL | foo7 | CFX | 0 | September 21, 2011 09:45 |
interDyMFoam - change in volume fraction | gopala | OpenFOAM Running, Solving & CFD | 0 | April 27, 2009 11:46 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
the Eulerian model and the lower volume fraction | hx li | FLUENT | 2 | October 27, 2005 07:17 |