CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   numerical beach with funkySetFields?! (http://www.cfd-online.com/Forums/openfoam/89516-numerical-beach-funkysetfields.html)

maxonline June 15, 2011 04:40

numerical beach with funkySetFields?!
 
Hi,

I defined an function with funkySetFields that raise die kinematic viscosity to a higher level.

Is it possible to set the funkySetFields for the entire calculation (every timestep) ?

thanks - max

gschaider June 15, 2011 08:32

Quote:

Originally Posted by maxonline (Post 312070)
Hi,

I defined an function with funkySetFields that raise die kinematic viscosity to a higher level.

Is it possible to set the funkySetFields for the entire calculation (every timestep) ?

thanks - max

In swak4Foam there is a functionObject manipulateField that could do that (as long as the viscosity-Field is available under that name in memory). But I'm not totally sure whether this is the best way to implement a viscosity model

Bernhard

maxonline June 15, 2011 12:24

Okay, that means that there is no way to create a numerical beach with funkySetFields?!
I have problems with the installation of swak4foam. That is why I tried it with funkySetFields.

Max

gschaider June 15, 2011 15:42

Quote:

Originally Posted by maxonline (Post 312165)
Okay, that means that there is no way to create a numerical beach with funkySetFields?!
I have problems with the installation of swak4foam. That is why I tried it with funkySetFields.

Max

It is. Depending on two things:

- the viscosity field is registered (so that swak can find it)
- it is not updated between the time you modify it and the time it is used

Both of this depends on the solver

Bernhard

maxonline June 15, 2011 16:15

Ah okay.
I am creating waves with groovyBC and the solver is interFoam.

If I take a turbulence model and then modify the turbulent viscosity. Would that work?

Thank you
Max

gschaider June 16, 2011 09:31

Quote:

Originally Posted by maxonline (Post 312190)
Ah okay.
I am creating waves with groovyBC and the solver is interFoam.

If I take a turbulence model and then modify the turbulent viscosity. Would that work?

Depends on the turbulence model (whether it makes nut available "in memory"). With kEpsilon for instance you might get lucky

Bernhard

maxonline June 17, 2011 04:59

okay, thank you. I will give it a try...

Max


All times are GMT -4. The time now is 10:00.