|
[Sponsors] |
April 3, 2019, 04:21 |
Non linear Source Term, Vaporization Model
|
#1 |
Member
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7 |
Hi everyone. At the present time, I am trying to simulate an evaporation phenomenon with liquid nitrogen in OpenFoam. Therefore I've analyzed the InterCondensatingEvaporatinFoam, which should be well adapted to simulate the problem. In the "alphaEqn.H" the conservation equation for the phase fraction alpha is built.
The Code is the following: Code:
fvScalarMatrix alpha1Eqn ( fv::EulerDdtScheme<scalar>(mesh).fvmDdt(alpha1) + fv::gaussConvectionScheme<scalar> ( mesh, phi, upwind<scalar>(mesh, phi) ).fvmDiv(phi, alpha1) - fvm::Sp(divU, alpha1) == fvm::Sp(vDotvmcAlphal, alpha1) + vDotcAlphal ); alpha1Eqn.solve(); d/dt(alpha)+div(v*alpha)-div(v)*alpha=C'cond*(1-alpha)+C'vap*alpha. I understand that the source term is tretead in an implicit way (because of Sp()). In my view, it does not make sense to use a linear dependency of alpha for the source term. This linear dependency results in a large transient area from alpha=0 to alpha=1. Furthermore,in general, I do not understand why the mass stream of the evaporated mass should be a function on the value of alpha. To cut a long story short, I want to change the linear dependecy on alpha of the source term to a non-linear one. My first approach is that I want to replace alpha at the RHS. of the equation by the expression: (1-exp(-a/dd))/(1-exp(-1/dd)), where dd is a scalar predefined variable. This function should approximate the heaviside step function near alpha=0. Does anyone know how it is possible to use a function that dependes on alpha instead of just alpha? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |