June 5, 2022, 13:13
|
Using cloud set value of previous time step in boundary condition
|
#1
|
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 6
|
HI!
I want to use temperature value of a specific mesh point from previous time step in a boundary condition. I have used cloud set in controlDict functions to get temperature at specific mesh point; however when I'm trying to use this data in defining boundary condition via swak4foam, I'm getting error that the set is not found in table. Valid entries: 0()
I'm using this piece of code in groovyBC to get sampled set data:
Code:
ceiling
{ type groovyBC;
value uniform 300;
variables (
"Tpoint{set'sensor}=average(T);"
);
gradientExpression "mag((Tpoint-oldTime(Tpoint))/deltaT())";
}
I have added the following function for cloud set in controlDict:
Code:
sensor
{
type sets;
libs (sampling);
writeControl timeStep;
writeInterval 1;
interpolationScheme cellPointFace;
setFormat raw;
fields ( T );
sets
(
sensor
{
type cloud;
axis xyz;
points (
(0 0.5 0.5)
);
}
);
}
What am I missing? please guide
Thanks
|
|
|