TAGGED: dramine
-
-
April 13, 2022 at 4:22 am
salaisargunansp
SubscriberHi,
I have problem with species mass transfer problem from CO2 to H2o.
In my case, four species in two phase (First gas phase: CO2 0.114, N2 0.886 and Second Liquid Phase: H20 0.8, MEA 0.2)
I used henry's law for mass transfer model, but temperature is increased, my time step is 1e-4, So I wrote udf, but udf is not initialized.
#include "udf.h"
DEFINE_MASS_TRANSFER(liq_gas_source, cell, thread, from_index, from_species_index, to_index, to_species_index)
{
real m_lg;
real T_SAT = 373.15;
Thread *gas = THREAD_SUB_THREAD(thread, from_index); /* gas phase*/
Thread *liq = THREAD_SUB_THREAD(thread, to_index); /* liquid phase*/
m_lg = 0.; /* initialisation*/
if ( (C_VOF(cell,gas) >0.0) && (C_VOF(cell,gas) <0.114))
{
m_lg = 0.1* C_VOF(cell,gas) * C_R(cell,gas) * C_YI(cell , gas , 0) ;
/*here C_YI(c, gas, 0 ), denotes species mass fraction of 1st species in the mixture denoted by phase 'gas'*/
}
return (m_lg);
}
Please give your suggestions
thank you in advanced
April 13, 2022 at 10:04 amRob
Forum ModeratorIs it not compiling, not loading, not working? I do suggest using comments, and also adding an ELSE into the IF statement.
April 14, 2022 at 7:33 amsalaisargunansp
SubscriberYes I added else condition, it is work now but mass transfer is occured but after a few time steps, it is diffused.
I have a doubt, is it necessary to specify a specific thread id for species in udf.
April 14, 2022 at 2:45 pmRob
Forum ModeratorYou'll shift from the set phase (species) to the other phase (species) so that should be OK. Check the phase volume fraction and compare that with the species.
Viewing 3 reply threads- The topic ‘Species Mass Transfer (CO2 to H2O)’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3492
-
1057
-
1051
-
965
-
942
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-