CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   funkySetFields complex boundary (https://www.cfd-online.com/Forums/openfoam/71366-funkysetfields-complex-boundary.html)

Svensson December 28, 2009 09:44

funkySetFields complex boundary
 
As by means of funkySetFields to initialize complex boundary conditions. For example totalPressure in a file 0/p. If it is necessary to set variables inside:
type totalPressure;
p0 nonuniform List<scalar>
2
(
1
2
);
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
Also we shall admit a field p0 will be nonuniform.

gschaider January 4, 2010 05:51

Quote:

Originally Posted by Svensson (Post 241043)
As by means of funkySetFields to initialize complex boundary conditions. For example totalPressure in a file 0/p. If it is necessary to set variables inside:
type totalPressure;
p0 nonuniform List<scalar>
2
(
1
2
);
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
Also we shall admit a field p0 will be nonuniform.

I don't understand the question.

Bernhard

Svensson January 10, 2010 15:10

I want to ask if it is possible to intialize difficult boundary conditions with funkySetFields. F.e. totalPressure for the file 0/p. Smth like that:

type totalPressure;
p0 nonuniform List<scalar>
2
(
1
2
);
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;

I mean i want to have not usual, normal, easy (yep, my English s.cks so sry) but.. erm.. difficult (?) variable. not only totalPressure but all that it has inside, f.e. p0.
Hope u could understand anything from the text above. thx.

gschaider January 11, 2010 05:48

Quote:

Originally Posted by Svensson (Post 242041)
I want to ask if it is possible to intialize difficult boundary conditions with funkySetFields. F.e. totalPressure for the file 0/p. Smth like that:

type totalPressure;
p0 nonuniform List<scalar>
2
(
1
2
);
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;

I mean i want to have not usual, normal, easy (yep, my English s.cks so sry) but.. erm.. difficult (?) variable. not only totalPressure but all that it has inside, f.e. p0.
Hope u could understand anything from the text above. thx.

OK. I think now I get it. You want to set something else than value to a non-uniform value using keepPatches/valuePatches. I'm sorry. This is currently not possible (even worse: I think that currently applying FSF to that field would remove the entries it doesn't know about (rho etc))

If you think that this is a feature missing from FSF, feel free to add a feature request at https://sourceforge.net/apps/mantisb...e_status_id=90 and I will consider it

Bernhard


All times are GMT -4. The time now is 22:02.