|
[Sponsors] |
how can I do dot product of U and fvc::grad(U) where U is an volVectorFiled ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 6, 2012, 03:04 |
how can I do dot product of U and fvc::grad(U) where U is an volVectorFiled ?
|
#1 |
Senior Member
Join Date: Jun 2011
Posts: 163
Rep Power: 15 |
Hi All
I want to solve perturbation equation with OF. I attached these equations. but I don't know how to calculate the convection term. I used the bellow equation fvVectorMatrix UperEqn ( fvm::ddt(Uper) + fvc::grad(U)& Uper + fvc::grad(Uper)& U - fvc::laplacian(nu, Uper) ); solve(UperEqn == -fvc::grad(pper)); but OF debug encounter bellow error for calculating fvc::grad(U)& Uper and fvc::grad(Uper)& U error: no match for ‘operator+’ in ‘Foam::fvm::ddt(Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::Vector<double>]() + Foam::fvc::grad(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::Vector<double>]()’ I would be very appreciative if someone could point me in the right direction to get this model running. |
|
March 6, 2012, 03:10 |
|
#2 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
grad(U)& Uper
grad(Uper)& U =div (UUper) so Quote:
|
||
March 6, 2012, 03:49 |
Dear nima
|
#3 |
Senior Member
Join Date: Jun 2011
Posts: 163
Rep Power: 15 |
since I want to remove the solving algebraic equation, I should calculate the derivative terms (like grad and laplacian) as an explicit fvc:: class
please see the attachment about perturbation equations and tell me how I can solve these equation with an fvc:: for all derivative and fvm:: for ddt() in this equations U is defined and uper is undefined I want to calculate all derivative in the momentum equation with explicit manner except ddt(). Best Regards |
|
February 24, 2023, 12:17 |
|
#4 |
New Member
shouvik ghorui
Join Date: Oct 2019
Posts: 15
Rep Power: 7 |
Have you found any suitable solution ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
double dot tensor product (double inner product) implementation | yogzebul | OpenFOAM Programming & Development | 2 | July 28, 2011 12:28 |