CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: santos
Forum: OpenFOAM Programming & Development January 31, 2011, 05:19
Replies: 9
Views: 4,913
Posted By santos
Actually I have used in the past a 'quick and...

Actually I have used in the past a 'quick and dirty' trick that allows you to do just that:
sourceTerm = (1-C)*C*runTime.deltaT().value()/runTime.deltaT();

Therefore, you get the correct...
Forum: OpenFOAM Programming & Development January 31, 2011, 04:52
Replies: 9
Views: 4,913
Posted By santos
Hi, I am not sure you can include your...

Hi,

I am not sure you can include your source term like that, ddt should be in the form ddt(C) or ddt(rho,C).

If you need: (C*(1-C))/dt, then try:

solve
(
fvm::ddt(C)
+fvm::div(phi, C)
Forum: OpenFOAM Programming & Development January 28, 2011, 05:56
Replies: 9
Views: 4,913
Posted By santos
Alex, k is a placeholder for the constants...

Alex,

k is a placeholder for the constants that are multiplied by C in your source term.

Hence, if your source term is 2*C, it is defined implicitly as: fvm::Sp(2,C). The Programmers Guide that...
Forum: OpenFOAM Programming & Development January 28, 2011, 05:20
Replies: 9
Views: 4,913
Posted By santos
Hi, You can just include your source term as...

Hi,

You can just include your source term as 'C*(1-C)' in the Ceqn.H equation. In this way it will be defined explicitly. I am not sure if you can work out the dimensions of this source term so it...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 19:46.