CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   modify cyclic b.c. (http://www.cfd-online.com/Forums/openfoam-programming-development/101583-modify-cyclic-b-c.html)

modify cyclic b.c.

I'm simulating the spreading of a contaminant from a point source in a fully developed duct flow. So I would like to apply the cyclic boundary conditions (with the channelFoam solver) for velocities and pressure but not for the concentration of the contaminant (once the contaminant is at the outlet, it should not be feed in at the inlet)

So far I used directMapped (map velocities and pressure of the cross section in the middle to the inlet) at the inlet and zeroGradient at the outlet for pressure and velocities. For the contaminant concentration I used zeroGradient at the outlet and fixedValue (=0) at the inlet. So my duct is actually longer than I need (the influence of the zeroGradient boundary condition at the outlet requires that the duct is long enough).

I'm wondering, if it's possible to use cyclic boundary conditions for pressure and velocities but not for the contaminants concetration. Acutally I want to set the concentration to 0 at the inlet.

Could someone tell me which files I have to modify?

 zxj160 June 4, 2012 12:44

I also met the same problem. Did you solve it? If so, could you please tell me how to do that?

Quote:
 Originally Posted by Adrian83 (Post 359929) I'm simulating the spreading of a contaminant from a point source in a fully developed duct flow. So I would like to apply the cyclic boundary conditions (with the channelFoam solver) for velocities and pressure but not for the concentration of the contaminant (once the contaminant is at the outlet, it should not be feed in at the inlet) So far I used directMapped (map velocities and pressure of the cross section in the middle to the inlet) at the inlet and zeroGradient at the outlet for pressure and velocities. For the contaminant concentration I used zeroGradient at the outlet and fixedValue (=0) at the inlet. So my duct is actually longer than I need (the influence of the zeroGradient boundary condition at the outlet requires that the duct is long enough). I'm wondering, if it's possible to use cyclic boundary conditions for pressure and velocities but not for the contaminants concetration. Acutally I want to set the concentration to 0 at the inlet. Could someone tell me which files I have to modify?

Unfortunately not. I tried to modify fvScalarMatrix, but with no success.

 zxj160 July 2, 2012 11:39

Quote:
 Originally Posted by Adrian83 (Post 359929) So far I used directMapped (map velocities and pressure of the cross section in the middle to the inlet) at the inlet and zeroGradient at the outlet for pressure and velocities. Could someone tell me which files I have to modify?
Hi, can you use 'directMaped' BC for cyclic inlet and outlet patches?

My best regards,
Jian

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