# About Derived BC

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

September 17, 2012, 19:15
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,034
Rep Power: 43
Quote:
 Originally Posted by mmkr825 --> FOAM FATAL ERROR: Parser Error at "1.25-27" :"field fvc not existing or of wrong type" "1.4142*sqrt(magSqr(symm(fvc::grad(U))))+nl" " ^^^ " please suggest me how to rectify this. I have one more doubt that i defined grad(T), which tends to give a vector field. Where as T is scalar. Therefore to calculate one value there are three conditions. Actually i need surface normal gradient. Please suggest me how to overcome this problem. Thanks Regards Mallikarjuna
As mentioned in the other post on the patch you might want to use snGrad(T) which gives you the gradient in surface normal direction (which is only a scalar)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

 September 22, 2012, 03:12 About div(TensorField) #3 Member   M Mallikarjuna Reddy Join Date: Jul 2012 Posts: 91 Rep Power: 7 Hi Gschaider, In my project i need to write div(tensorField). when i write in OF the following error is coming. Error:- error: no matching function for call to ‘div(Foam::tmp >, Foam::volTensorField&)’ My governing equation is div(nu, E)=-grad(p) where E= symmetric part of grad(U) = 1/2(grad(U)+grad(U).T) there by E will be tensor field. If grad(U) is symmetric then my governing equation can be written as laplacian(nu,U). But in my case it is not symmetric.Please guide me to rectify this problem. Thanks Regards Mallikarjuna

September 22, 2012, 05:10
#4
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,034
Rep Power: 43
Quote:
 Originally Posted by mmkr825 Hi Gschaider, In my project i need to write div(tensorField). when i write in OF the following error is coming. Error:- error: no matching function for call to ‘div(Foam::tmp >, Foam::volTensorField&)’ My governing equation is div(nu, E)=-grad(p) where E= symmetric part of grad(U) = 1/2(grad(U)+grad(U).T) there by E will be tensor field. If grad(U) is symmetric then my governing equation can be written as laplacian(nu,U). But in my case it is not symmetric.Please guide me to rectify this problem. Thanks Regards Mallikarjuna
Please read the Programmers Guide (it is old, but most of the information there is at least helpful). After that it will be clear to you that you'll have to choose explicit or implicit discretication with fvm and fvc
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

 September 25, 2012, 05:31 #5 Member   M Mallikarjuna Reddy Join Date: Jul 2012 Posts: 91 Rep Power: 7 Hi sir, I have a doubt about laplacian and divergence. For many problems we write div(nu, grad(T)) simply as laplacian(nu, T). For my application i need to write div(tensor), Which gives a vector field. But i am getting some error message as follows. UEqn:- tmp UEqn ( fvm::div(phi, U) - fvc::div(2*nu*pow(1-T/0.68,-1.82), symm(grad(U))) ); Error:- UEqn.H:7:62: error: no matching function for call to ‘div(Foam::tmp >, Foam::tmp, Foam::fvPatchField, Foam::volMesh> >)’ make: *** [Make/linuxGccDPOpt/sbm1Foam.o] Error 1 where symm(grad(U)) is rate of strain tensor.(1/2*(grad(U)+grad(U).T)). please guide me to rectify this problem.. Thanks Regards Mallikarjuna

September 25, 2012, 09:12
#6
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,034
Rep Power: 43
Quote:
 Originally Posted by mmkr825 Hi sir, I have a doubt about laplacian and divergence. For many problems we write div(nu, grad(T)) simply as laplacian(nu, T). For my application i need to write div(tensor), Which gives a vector field. But i am getting some error message as follows. UEqn:- tmp UEqn ( fvm::div(phi, U) - fvc::div(2*nu*pow(1-T/0.68,-1.82), symm(grad(U))) ); Error:- UEqn.H:7:62: error: no matching function for call to ‘div(Foam::tmp >, Foam::tmp, Foam::fvPatchField, Foam::volMesh> >)’ make: *** [Make/linuxGccDPOpt/sbm1Foam.o] Error 1 where symm(grad(U)) is rate of strain tensor.(1/2*(grad(U)+grad(U).T)). please guide me to rectify this problem.. Thanks Regards Mallikarjuna
fvc again

But I've got no idea what the title of the thread has got to do with this problem
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post psosnows OpenFOAM Programming & Development 4 December 26, 2013 19:02 rikio FLUENT 2 October 11, 2010 21:41 xamo STAR-CCM+ 8 September 29, 2009 05:35 jakjak CFX 1 December 20, 2007 15:38 Wee Main CFD Forum 0 October 15, 2006 09:39

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

 Contact Us - CFD Online - Privacy Statement - Top