|
[Sponsors] |
February 16, 2014, 13:24 |
explicit calculations in OpenFOAM
|
#1 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
I'm going to implement the following equation ( from a runge kutta step) in OpenFOAM.
I'm not using the time descritizations of OpenFOAM, therefore i have problem to solve this, Im not sure whether this would be the correct form of implementation or not. U* and laplacian(U*) in the LHS are unknown, and all of the terms in RHS are known. solve(fvc::laplacian(nu,Unew) - Unew/(alpha*runTime.deltaTValue()) = (-1./alpha)*(U/runTime.deltaTValue() + f) + fvc::laplacian(nu,UOld)) Does this equation solves Unew same as the equation attached? I would appreciate any suggestion. Last edited by ooo; February 20, 2014 at 12:50. |
|
February 20, 2014, 13:24 |
|
#2 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
I would like to simplify my question and would appreciate any idea:
How to solve this equation where U* is unknown and U is a known volVectorField : Laplacian(nu,U*) + U* = Laplacian(nu,U) I get many errors regarding the solve function if i write like this : solve (fvc::laplacian(nu,Unew) + Unew == fvc::laplacian(nu,U) ) Last edited by ooo; February 20, 2014 at 14:46. |
|
February 20, 2014, 19:57 |
|
#3 |
Member
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 14 |
I'm only marginal in my understanding of how the differential stuff sets up in OF so someone can feel free to correct me... but I believe by using fvc on all the terms you're not giving solve anything to solve for? As far as I know fvc simply returns a value. Presumably Unew is also initialized as a value therefore all you have on either side of your equation is value == value, which obviously isn't going to solve. I'm thinking if you were to use fvm on the Unew laplacian and somehow include your 2nd term, Unew, into the equation as an implicit term... then solve, you'd probably be successful. There should be a way to put Unew in there I'm just not sure what as I've never had the need to look it up.
|
|
February 22, 2014, 08:04 |
|
#4 | |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Quote:
I would appreciate also if you tell me your idea about this, using fvm::Sp(1,Unew) for including Unew in LHS... solve (fvm::laplacian(nu,Unew) + fvm::Sp(1,Unew) == fvc::laplacian(nu,U) ) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 12:32 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
The OpenFOAM extensions project | mbeaudoin | OpenFOAM | 16 | October 9, 2007 10:33 |
OpenFOAM Training and Workshop | Hrvoje Jasak | Main CFD Forum | 0 | October 7, 2005 08:14 |