
[Sponsors] 
March 22, 2014, 15:54 
blockCoupledScalarTransport solver

#1 
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 5 
Hi everybody,
I am trying to solve 2 transport equations that are coupled each other and I modified blockCoupledScalarTransport.C in the way of my equations and the same as mentioned here http://sourceforge.net/p/openfoamex...TransportFoam/ I added all this files with makefile in my directory but when I want to compile my solver(the modified version of blockCoupledScalarTransport) I have this: In file included from tensor2Field.H:40:0, from tensor2Field.C:27: tensor2.H:39:21: fatal error: TensorN.H: No such file or directory compilation terminated. Does anybody knows what is this and what should I do? thanks in advance 

March 22, 2014, 18:23 

#2 
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,872
Blog Entries: 39
Rep Power: 108 
Greetings alisinas and welcome to the forum!
I'm not sure I understand your question. Are you trying to build this solver with or without OpenFOAM? Best regards, Bruno 

March 22, 2014, 18:39 

#3 
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 5 
thanks,
I am trying to use this solver by a little bit modification int the way of my equations in openfoam. 

March 22, 2014, 18:53 

#4  
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,872
Blog Entries: 39
Rep Power: 108 
Quote:


March 23, 2014, 06:11 

#5 
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 5 
thanks bruno for your answer
I knew about how to make our own solver but I did not know that I have to use this specific version of openfoam you mentioned.my equations are like below A) dT/dt +d/dx(UT)=0 B) dT/dt +d/dx(Uk)=0 dk/dt +d/dx(UT)=0 and k is another quantity that want to be transfered like T. I know these are not notation of openfoam in writing the equations I just want to mention my equations. do you have any other suggestion for this except using "blockCoupledScalarTransport"? regards, sina 

March 23, 2014, 13:28 

#6 
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,872
Blog Entries: 39
Rep Power: 108 
Unfortunately, I don't know the answer.
But I do have the vague idea that this has been asked here in the forum a few times in the past... Good luck! Best regards, Bruno 

March 24, 2014, 06:45 

#7  
New Member
Paul Weber
Join Date: Mar 2014
Posts: 3
Rep Power: 5 
Hello sina,
I think you do not need a block coupled solver since your equations decouple. Quote:
Code:
0 = dk/dt + d/dx(UT) = dk/dt  dT/dt = dk/dt + d/dx(Uk) Code:
dT/dt + d/dx(UT) = 0 dk/dt + d/dx(Uk) = 0 Paul 

March 27, 2014, 12:47 

#8  
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 5 
Quote:
but what if I wanted to solve these two quantity together,I mean if I want k be under effect of Quantity T,Do you have any idea? 

April 3, 2014, 07:44 

#9 
New Member
Paul Weber
Join Date: Mar 2014
Posts: 3
Rep Power: 5 
Dear Sina,
the nature of your equations is such that T and k decouple, i.e. they have no influence on each other. Reformulations of the system and it's simulation will never show dependence of T and k on each other, simply because it does not exist. However, if the underlying physics modeled by your system indeed imply a coupling, the only way to get it included is to redo the modeling in a proper way and thus derive a new, then coupled, equation system. In that case, the coupled system can be written as Code:
dT/dt + d/dx(UT) = f(k) dk/dt + d/dx(Uk) = g(T) Best, Paul 

April 3, 2014, 11:12 

#10  
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 5 
Quote:
dT/dt + d/dx(Uk) = 0 dk/dt + d/dx(UT) = 0 how can I solve this? I was thinking to define a vector a(T k2) and a'(k T) and then solve da/dt + da'/dx = 0 do you know how can I implement this in openfoam? Thanks in advance, Sina 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Fluent Adjoint Solver?  ex10148  FLUENT  15  July 21, 2015 01:13 
thobois class engineTopoChangerMesh error  Peter_600  OpenFOAM  4  August 2, 2014 09:52 
Divergence problem  Smaras  FLUENT  13  February 21, 2013 06:03 
3d vof  Smaras  FLUENT  2  February 19, 2013 07:58 
why the solver reject it? Anyone with experience?  bearcat  CFX  6  April 28, 2008 14:08 