CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to solve using relaxation techniques (https://www.cfd-online.com/Forums/openfoam-solving/57890-how-solve-using-relaxation-techniques.html)

dmoroian February 10, 2009 09:43

Hello Vishal, Is there any ch
 
Hello Vishal,
Is there any chance that you have opened this file with a windows editor? If so, try to do a "dos2unix" on it.

For the rest of the forum: can anyone tell me how it sould be discretized the following scalar equation?
http://www.cfd-online.com/OpenFOAM_D...your_image.gif
where a, b, and c are scalars.
It seems that

fvScalarMatrix Eqn1(
fvm::div(a*fvc::grad(b)+a*b*fvc::grad(c))
);

is not an acceptable syntax.

Dragos

dmoroian February 10, 2009 09:46

Hello Vishal, Is there any ch
 
Hello Vishal,
Is there any chance that you have opened this file with a windows editor? If so, try to do a "dos2unix" on it.

For the rest of the forum: can anyone tell me how it sould be discretized the following scalar equation?
http://www.cfd-online.com/OpenFOAM_D...es/1/11079.gif
where a, b, and c are scalars.
It seems that

fvScalarMatrix Eqn1(
fvm::div(a*fvc::grad(b)+a*b*fvc::grad(c))
);

is not an acceptable syntax.

Dragos

nandiganavishal February 10, 2009 13:39

Hi Dragos, I am running Ope
 
Hi Dragos,

I am running OpenFOAM on a Linux (ubuntu) machine... I am not using windows...

Thanks

Regards

Vishal

nandiganavishal February 26, 2009 14:01

Hi All, As I had already po
 
Hi All,

As I had already posted before.. I would like to know more about how exactly PhiEqn.relax() and Phi.relax works. I know former is implicit and it relaxes the matrix and the latter just does it explicitly..but how exactly these are done in openfoam... .What is the advantage of one over the other and hown exactly one should choose between them??

Kindly offer your suggestions..

nandiganavishal February 26, 2009 14:02

Hi All, As I had already po
 
Hi All,

As I had already posted before.. I would like to know more about how exactly PhiEqn.relax() and Phi.relax works. I know former is implicit and it relaxes the matrix and the latter just does it explicitly..but how exactly these are done in openfoam... .What is the advantage of one over the other and hown exactly one should choose between them??

Kindly offer your suggestions..

Regards

Vishal

nimasam May 26, 2010 02:10

a linear equation
 
hi dear openFoam former
im going to solve a linear equation set in openFoam
AB=C ( A ,C are vectors and B is a tensor )
how can i manage this structure in openFoam? , i would like to use openFoam iterative solver directly:confused:
actually i have two vectors (A,C) and i'd like to find transformation tensor (B)
any help?


All times are GMT -4. The time now is 17:01.