I want to save additional values on my boundaries, for example the partial derivative of the velocity in x and y direction (delvx/delx and delvy/dely).
But I don't know how i can get saveline to actually save my user defined variables.
I used this:
Code: Select all
Solver 3
procedure = "SaveData" "SaveLine"
fileName = "delU.sl"
Exec Solver = After Simulation
Variable 1 = coordinate 1
Variable 2 = coordinate 2
Variable 3 = pressure
Variable 4 = TMAC
Variable 5 = DvelocityXDx
Variable 6 = DvelocityYDy
end
My boundary condition looks like this:
Code: Select all
Boundary Condition 1
target boundaries = 3
Normal-Tangential Velocity = True
Flow Force BC = True
velocity 1 = 0
Slip Coefficient 2 = Variable temperature,pressure
Procedure "./slipCoeff" "slipCoeff"
Heat Flux BC = true
pressure 2 = variable temperature
Procedure "/thermalCreep2D" "thermalCreep"
Heat Transfer Coefficient = Variable temperature, pressure
Procedure "heatTransCoeff" "heatTransCoeff"
External Temperature = 313
DvelocityDx = Variable temperature
Real Procedure "delUx" "delUx"
DvelocityDy = Variable temperature
Real Procedure "delUy" "delUy"
TMAC = Real 1
TAC = Real 1.0
save line = true
end
thanks,
Daniela