Add source term to KEpsilon model in given location
Hello foamers,
I am simulating tidal turbine using actuator disc concept in OpenFOAM v2006. I want to add a source term of turbulence production term around the disc region only. How can I specify the location where the source term is added??? Thanks |
You can use a codedfvOption an include the source term in the k equation. Take a look at the actuator disk model how to specify the locations https://develop.openfoam.com/Develop...tionDiskSource
Best Michael |
1 Attachment(s)
Quote:
Hello Michael, I use the coded fvoptions as suggested and I got this error. First of all, I had to compile the coded fv options ( I am using a cluster server v2006) below is my fv options file. I am interested in adding the following term (see attachment please) Code:
codedSource Code:
smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 0.0496559290788, No Iterations 4 Thank you |
Seems a problem with the output. Can you comment the Pout line.
In the error the appear some line numbers. Which line number are this? |
Quote:
1./ I have commented the Pout line, but I still have the same problem 2/ The line numbers are for the parallel processors, I am running the simulation on cluster network. |
Code:
you're assign scalarField to scalars ... but you treat it as scalar inside the for loop |
Quote:
I want to apply the source term to only cells defined in the cellset, not the entire domain I have specified the cellset using topoSet |
Code:
forAll(C,i) { epsilonSource[i] += rh*Cm2*pow(eps,2)/kk*V[i]; } you do not define the size either ... this may be your mistake |
Quote:
I found another method to apply scalar fields using the semi-implicit fvOptions below Code:
scalarSource Code:
generalSource |
No experience about your function objects. Is there no documentation
|
All times are GMT -4. The time now is 13:01. |