CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Using cloud set value of previous time step in boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2022, 14:13
Default Using cloud set value of previous time step in boundary condition
  #1
Member
 
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 6
B_R_Khan is on a distinguished road
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
B_R_Khan is offline   Reply With Quote

Reply

Tags
sampledset, swak4faom


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 19:28
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 06:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


All times are GMT -4. The time now is 08:20.