Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fan curve with disappearing OBSTruction #10884

Closed
Er9y714 opened this issue Aug 17, 2022 · 13 comments
Closed

Fan curve with disappearing OBSTruction #10884

Er9y714 opened this issue Aug 17, 2022 · 13 comments
Assignees

Comments

@Er9y714
Copy link

Er9y714 commented Aug 17, 2022

I was working on the fan curve to obtain a certain curve, which I have not achieved yet. Meanwhile I observed a behaviour I could not understand. Could you please have a look?

There are two runs below. The difference is the second file has an obstruction that appears and disappears again. The resulting flow rate is quite different. In the second run with obstruction, the fan flow rate grows much slower.

As a secondary question:
the fan curve I want to obtain;
Extract fan, ramping up in 1 seconds, say 3 m3/s flow rate between 0 and -200 Pa. 0 m3/s for pressure difference larger than -200 Pa.

Thank you.

Run 1


&HEAD CHID='1'/
&TIME T_END=260.0/
&DUMP DT_DEVC=0.01, DT_SLCF=0.1, NFRAMES=520/

&MESH ID='Mesh01', IJK=4,10,10, XB=0.6,1.0,0.0,1.0,0.0,1.0/

 

 
&DEVC ID='pressure', QUANTITY='PRESSURE', XYZ=0.725,0.675,0.485302/

&DEVC ID='FLOW', QUANTITY='U-VELOCITY', SPATIAL_STATISTIC='AREA INTEGRAL', XB=0.8,0.8,0.0,1.0,0.0,1.0/ 


 

&VENT ID='fan', SURF_ID='HVAC', XB=0.6,0.6,0.0,1.0,0,1.0/ 
&VENT ID='open', SURF_ID='OPEN', XB=1.0,1.0,0.0,1.0,0.0,1.0/ 

&HVAC ID='inlet', TYPE_ID='NODE', DUCT_ID='duct', AMBIENT=.TRUE., XYZ=0.6,0.0,0.0/
&HVAC ID='duct', TYPE_ID='DUCT', AREA=1.0, PERIMETER=4.0, FAN_ID='Fan01', LOSS=1.0E-4,1.0E-4, NODE_ID='outlet','inlet', REVERSE=.TRUE., ROUGHNESS=0.0, LENGTH=0.707107/

&HVAC ID='outlet', TYPE_ID='NODE', DUCT_ID='duct', VENT_ID='fan'/
&HVAC ID='Fan01', TYPE_ID='FAN', TAU_FAN=1.0E-4, RAMP_ID='Fan01_RAMP_ID'/

&RAMP ID='Fan01_RAMP_ID', T=-10.0, F=0.0/
&RAMP ID='Fan01_RAMP_ID', T=-9.9, F=-15.0/
&RAMP ID='Fan01_RAMP_ID', T=0.0, F=-16.0/

&SLCF QUANTITY='VELOCITY', VECTOR=.TRUE., PBY=0.495512/
&SLCF QUANTITY='PRESSURE', VECTOR=.TRUE., PBY=0.5/


&TAIL /

File 2:


&HEAD CHID='2'/
&TIME T_END=260.0/
&DUMP DT_DEVC=0.01, DT_SLCF=0.1, NFRAMES=520/

&MESH ID='Mesh01', IJK=4,10,10, XB=0.6,1.0,0.0,1.0,0.0,1.0/

&RAMP ID='Control01_RAMP', T=49.75, F=-1.0/
&RAMP ID='Control01_RAMP', T=50.25, F=1.0/
&RAMP ID='Control01_RAMP', T=59.75, F=1.0/
&RAMP ID='Control01_RAMP', T=60.25, F=-1.0/

&CTRL ID='Control01', FUNCTION_TYPE='CUSTOM', RAMP_ID='Control01_RAMP', LATCH=.FALSE., INPUT_ID='TIME'/
&DEVC ID='TIME', QUANTITY='TIME', XYZ=0.6,0.0,0.0/
&OBST ID='Obstruction', XB=0.8,1.0,0,1.0,0.0,1.0, CTRL_ID='Control01'/ 


&DEVC ID='pressure', QUANTITY='PRESSURE', XYZ=0.725,0.675,0.485302/
&DEVC ID='FLOW', QUANTITY='U-VELOCITY', SPATIAL_STATISTIC='AREA INTEGRAL', XB=0.8,0.8,0.0,1.0,0.0,1.0/


&VENT ID='fan', SURF_ID='HVAC', XB=0.6,0.6,0.0,1.0,0,1.0/ 
&VENT ID='open', SURF_ID='OPEN', XB=1.0,1.0,0.0,1.0,0.0,1.0/ 

&HVAC ID='inlet', TYPE_ID='NODE', DUCT_ID='duct', AMBIENT=.TRUE., XYZ=0.6,0.0,0.0/
&HVAC ID='duct', TYPE_ID='DUCT', AREA=1.0, PERIMETER=4.0, FAN_ID='Fan01', LOSS=1.0E-4,1.0E-4, NODE_ID='outlet','inlet', REVERSE=.TRUE., ROUGHNESS=0.0, LENGTH=0.707107/

&HVAC ID='outlet', TYPE_ID='NODE', DUCT_ID='duct', VENT_ID='fan'/
&HVAC ID='Fan01', TYPE_ID='FAN', TAU_FAN=1.0E-4, RAMP_ID='Fan01_RAMP_ID'/

&RAMP ID='Fan01_RAMP_ID', T=-10.0, F=0.0/
&RAMP ID='Fan01_RAMP_ID', T=-9.9, F=-15.0/
&RAMP ID='Fan01_RAMP_ID', T=0.0, F=-16.0/

&SLCF QUANTITY='VELOCITY', VECTOR=.TRUE., PBY=0.495512/
&SLCF QUANTITY='PRESSURE', VECTOR=.TRUE., PBY=0.5/


&TAIL /

image

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

I just have noticed it was run in v6.7.8.

I will run in 6.7.9 and report it.

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

I have run in 6.7.9 and results did not change.

image

@mcgratta mcgratta self-assigned this Aug 17, 2022
@mcgratta
Copy link
Contributor

I do not understand what you are trying to do here:

&HVAC ID='outlet', TYPE_ID='NODE', DUCT_ID='duct', VENT_ID='fan'/
&HVAC ID='Fan01', TYPE_ID='FAN', TAU_FAN=1.0E-4, RAMP_ID='Fan01_RAMP_ID'/

&RAMP ID='Fan01_RAMP_ID', T=-10.0, F=0.0/
&RAMP ID='Fan01_RAMP_ID', T=-9.9, F=-15.0/
&RAMP ID='Fan01_RAMP_ID', T=0.0, F=-16.0/

If I am interpreting this correctly, you are saying that the flan flow rate should be -9.9 m³/s at -15 Pa, and 0 m³/s at -16 Pa. This doesn't seem like a good idea to make the velocity change this much based on only a 1 Pa pressure difference.

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

I understand. I also realized what I aim to model is not possible to do with only a fan curve. Let's ignore the fan curve and leave it out of the discussion/issue, if possible.

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

And, if the fan curve is the source of the issue, I understand. I would take it as a user input error and close the issue.

@mcgratta
Copy link
Contributor

I do not understand what the issue is yet. I am still just trying to figure out what you are doing. Post a new input file, only one, that does not work properly.

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

Okay, let me try if I can reproduce a simpler input. Thank you

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

I have replaced the curve with the example in the FDS User guide(12.2.4 HVAC Fan Parameters).

My question is why the fan flow rate ramps up quickly in the first calculation and takes time in the second calculation. Note that obstruction appears at 50 s and disappear at 60 s.

image

No obstruction:


&HEAD CHID='1'/
&TIME T_END=260.0/
&DUMP DT_DEVC=0.01, DT_SLCF=0.1, NFRAMES=520/
&MESH ID='Mesh01', IJK=4,10,10, XB=0.6,1.0,0.0,1.0,0.0,1.0/
 
&DEVC ID='pressure', QUANTITY='PRESSURE', XYZ=0.725,0.675,0.485302/
&DEVC ID='FLOW', QUANTITY='U-VELOCITY', SPATIAL_STATISTIC='AREA INTEGRAL', XB=0.8,0.8,0.0,1.0,0.0,1.0/ 

&VENT ID='fan', SURF_ID='HVAC', XB=0.6,0.6,0.0,1.0,0,1.0/ 
&VENT ID='open', SURF_ID='OPEN', XB=1.0,1.0,0.0,1.0,0.0,1.0/ 

&HVAC ID='inlet', TYPE_ID='NODE', DUCT_ID='duct', AMBIENT=.TRUE., XYZ=0.6,0.0,0.0/
&HVAC ID='duct', TYPE_ID='DUCT', AREA=1.0, PERIMETER=4.0, FAN_ID='Fan01', LOSS=1.0E-4,1.0E-4, NODE_ID='outlet','inlet', REVERSE=.TRUE., ROUGHNESS=0.0, LENGTH=0.707107/

&HVAC ID='outlet', TYPE_ID='NODE', DUCT_ID='duct', VENT_ID='fan'/
&HVAC ID='Fan01', TYPE_ID='FAN',  RAMP_ID='fan curve'/

&RAMP ID='fan curve',T=-10.00,F= 1000/
&RAMP ID='fan curve',T= -7.75,F= 800/
&RAMP ID='fan curve',T= -4.47,F= 600/
&RAMP ID='fan curve',T= 4.47,F= 400/
&RAMP ID='fan curve',T= 7.75,F= 200/
&RAMP ID='fan curve',T= 10.00,F= 0/
&RAMP ID='fan curve',T= 11.83,F= -200/
&RAMP ID='fan curve',T= 13.42,F= -400/
&RAMP ID='fan curve',T= 14.83,F= -600/
&RAMP ID='fan curve',T= 16.12,F= -800/
&RAMP ID='fan curve',T= 17.32,F=-1000/

&SLCF QUANTITY='VELOCITY', VECTOR=.TRUE., PBY=0.495512/
&SLCF QUANTITY='PRESSURE', VECTOR=.TRUE., PBY=0.5/

&TAIL /

Obstruction is added:

&HEAD CHID='2'/
&TIME T_END=260.0/
&DUMP DT_DEVC=0.01, DT_SLCF=0.1, NFRAMES=520/

&MESH ID='Mesh01', IJK=4,10,10, XB=0.6,1.0,0.0,1.0,0.0,1.0/

&RAMP ID='Control01_RAMP', T=49.75, F=-1.0/
&RAMP ID='Control01_RAMP', T=50.25, F=1.0/
&RAMP ID='Control01_RAMP', T=59.75, F=1.0/
&RAMP ID='Control01_RAMP', T=60.25, F=-1.0/

&CTRL ID='Control01', FUNCTION_TYPE='CUSTOM', RAMP_ID='Control01_RAMP', LATCH=.FALSE., INPUT_ID='TIME'/
&DEVC ID='pressure', QUANTITY='PRESSURE', XYZ=0.725,0.675,0.485302/
&DEVC ID='FLOW', QUANTITY='U-VELOCITY', SPATIAL_STATISTIC='AREA INTEGRAL', XB=0.8,0.8,0.0,1.0,0.0,1.0/
&DEVC ID='TIME', QUANTITY='TIME', XYZ=0.6,0.0,0.0/

&OBST ID='Obstruction', XB=0.8,1.0,0,1.0,0.0,1.0, CTRL_ID='Control01'/ 

&VENT ID='fan', SURF_ID='HVAC', XB=0.6,0.6,0.0,1.0,0,1.0/ 
&VENT ID='open', SURF_ID='OPEN', XB=1.0,1.0,0.0,1.0,0.0,1.0/ 

&HVAC ID='inlet', TYPE_ID='NODE', DUCT_ID='duct', AMBIENT=.TRUE., XYZ=0.6,0.0,0.0/
&HVAC ID='duct', TYPE_ID='DUCT', AREA=1.0, PERIMETER=4.0, FAN_ID='Fan01', LOSS=1.0E-4,1.0E-4, NODE_ID='outlet','inlet', REVERSE=.TRUE., ROUGHNESS=0.0, LENGTH=0.707107/

&HVAC ID='outlet', TYPE_ID='NODE', DUCT_ID='duct', VENT_ID='fan'/
&HVAC ID='Fan01', TYPE_ID='FAN',   RAMP_ID='fan curve'/
 
&RAMP ID='fan curve',T=-10.00,F= 1000/
&RAMP ID='fan curve',T= -7.75,F= 800/
&RAMP ID='fan curve',T= -4.47,F= 600/
&RAMP ID='fan curve',T= 4.47,F= 400/
&RAMP ID='fan curve',T= 7.75,F= 200/
&RAMP ID='fan curve',T= 10.00,F= 0/
&RAMP ID='fan curve',T= 11.83,F= -200/
&RAMP ID='fan curve',T= 13.42,F= -400/
&RAMP ID='fan curve',T= 14.83,F= -600/
&RAMP ID='fan curve',T= 16.12,F= -800/
&RAMP ID='fan curve',T= 17.32,F=-1000/

&SLCF QUANTITY='VELOCITY', VECTOR=.TRUE., PBY=0.495512/
&SLCF QUANTITY='PRESSURE', VECTOR=.TRUE., PBY=0.5/

&TAIL /

@mcgratta
Copy link
Contributor

I think what is happening is that each time the obstruction disappears, a pressure zone is opened. This includes time t=0 because the obstruction actually disappears at time t=0. When a zone opens, the air flow in and out of the zone is limited to reduce the sudden change in pressure that occurs when a solid object simply disappears in a single time step. I'll ask Jason to chime in if this is not the case.

@drjfloyd
Copy link
Contributor

I added DEVC_ID to the &HVAC line with the fan to turn the fan on at 10 s. This removes the t=0 OBST difference. There is still a difference in the fan flow with the fan delayed. It may be there is a bug in the HVAC solver noticing the zone change for the vent resulting in an error in the extrapolated pressure calculation. I can look in more detail when I am back from vacation.

@Er9y714
Copy link
Author

Er9y714 commented Aug 17, 2022

Thank you for your time. Since you mentioned vacation, I have to say this is not an urgent need for me. It is a type of issue that a work-around can be used.

drjfloyd added a commit that referenced this issue Aug 29, 2022
FDS Source: Fix pressure zone error in HVAC, Issue #10884
@drjfloyd
Copy link
Contributor

The logic for checking which zone a duct node is in wasn't correct. It was not properly using the CONNECTED_ZONES array. This bug has been since we first added HVAC to FDS. Good find! Adding to the 2022 Boris Stock Award nominee list.

Should be fixed in 7f2c7ec

@Er9y714
Copy link
Author

Er9y714 commented Aug 29, 2022

Amazing! Thank you for solving the issue and and for the nomination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants