|
[Sponsors] |
December 24, 2006, 19:37 |
I am confusing about the sourc
|
#1 |
Guest
Posts: n/a
|
I am confusing about the source term implementation. I have a fixed value source term (suppose 100) and want to use it in a diffusive equation. I have implemented as follows:
.. volScalarField SS=100 .. .. solve(Eqn==-fvm::Sp(SS)) But the compiler does not accept this syntax. Can anyone please help me? |
|
December 25, 2006, 10:24 |
You just need to put "100" in
|
#2 |
New Member
diego n.
Join Date: Mar 2009
Posts: 17
Rep Power: 17 |
You just need to put "100" in the rhs of the equation without creating a new vol field that cannot be initialized in the way you are doing.
|
|
December 25, 2006, 17:39 |
Hi diego
Thanks for your su
|
#3 |
Guest
Posts: n/a
|
Hi diego
Thanks for your suggestion. If I follow like you, the equation would be: solve(Eqn==100) But still, I am getting error message. Liton |
|
December 26, 2006, 18:56 |
I have modified my code and fi
|
#4 |
Guest
Posts: n/a
|
I have modified my code and finally compiled the code without any error. I have defined my source term as dimensionedScalar, then I have implemented the source term like following:
fvScalarMatrix UEqn ( fvm::laplacian(kappa,T) ); solve(UEqn ==-fvm::Sp(source, T)) // T is variable The solution that I got from this equation is terrible. Could some one please tell me, what's wrong I have done? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Source Term | Christian | FLUENT | 4 | August 1, 2009 05:53 |
How can I add a source term | danielle | OpenFOAM Running, Solving & CFD | 1 | February 29, 2008 11:52 |
Source term | mayur | FLUENT | 0 | August 10, 2004 13:23 |
Source Term | Prakash Verma | FLUENT | 1 | August 6, 2004 09:56 |
source term | zwdi | FLUENT | 2 | May 26, 2004 10:34 |