CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Non linear Source Term, Vaporization Model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2019, 03:21
Default Non linear Source Term, Vaporization Model
  #1
Member
 
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7
Phigo90 is on a distinguished road
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();
In mathematical notation, that should be
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?
Phigo90 is offline   Reply With Quote

Reply


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
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 00:40.