Skip to content

Error while running the single_heliostat.yaml #92

@adrienscemama

Description

@adrienscemama

Hello,
I tried to run the script pvade_main.py with this .yaml files. This error was raised:

(ePVade) ubuntu@LD210661:/mnt/d/PVade-main$ python pvade_main.py --input input/single_heliostat.yaml
Reading problem definition from input/single_heliostat.yaml
Traceback (most recent call last):
File "/mnt/d/PVade-main/pvade_main.py", line 183, in
params, structure, flow = main()
File "/mnt/d/PVade-main/pvade_main.py", line 26, in main
params = SimParams(input_file)
File "/mnt/d/PVade-main/pvade/IO/Parameters.py", line 81, in init
self._validate_inputs()
File "/mnt/d/PVade-main/pvade/IO/Parameters.py", line 300, in _validate_inputs
validate(self.input_dict, self.schema_dict)
File "/home/ubuntu/anaconda3/envs/ePVade/lib/python3.13/site-packages/jsonschema/validators.py", line 1332, in validate
raise error
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('time_varying_inflow_bc' was unexpected)

Failed validating 'additionalProperties' in schema['properties']['fluid']:
{'additionalProperties': False,
'type': 'object',
'properties': {'velocity_profile_type': {'default': 'uniform',
'type': 'string',
'description': 'The shape of '
'the inflow '
'velocity '
'profile',
'enum': ['uniform',
'loglaw',
'parabolic']},
'inflow_coeff': {'default': 1.0,
'minimum': 0.0,
'maximum': 100.0,
'type': 'number',
'description': 'When applying a '
'parabolic inflow '
'velocity profile, '
'this coefficient is C '
'in the equation U = '
'(C/H^2)u_refy(H-y)',
'units': 'none'},
'u_ref': {'default': 8.0,
'minimum': 0.0,
'maximum': 100.0,
'type': 'number',
'description': 'The velocity of the wind as '
'measured at the panel '
'elevation.',
'units': 'meter/second'},
'z0': {'default': 0.05,
'minimum': 0.001,
'maximum': 10.0,
'type': 'number',
'description': 'The surface roughness length '
'used in the log law velocity '
'profile.',
'units': 'meters'},
'd0': {'default': 0.5,
'minimum': 0.0,
'maximum': 50.0,
'type': 'number',
'description': 'The zero plane displacement '
'height used for the presence of '
'vegetated or urban canopies in '
'the log law velocity profile.',
'units': 'meters'},
'initialize_with_inflow_bc': {'default': True,
'type': 'boolean',
'description': 'If true, '
'use the '
'inflow '
'boundary '
'condition '
'to '
'interpolate '
'a '
'non-zero '
'initial '
'velocity '
'throughout '
'the '
'domain '
'(even if '
'that '
'does not '
'respect '
'interior '
'boundary '
'conditions), '
'if '
'false, '
'initial '
'velocity '
'is '
'zero.'},
'time_varying_inflow_window': {'default': 0.0,
'minimum': 0.0,
'type': 'number',
'description': 'The '
'amount '
'of time '
'over '
'which '
'the '
'inflow '
'condition '
'should '
"'ramp "
"up' to "
'the '
'full '
'value '
'of '
'u_ref, '
'smoothed '
'using a '
'cosine '
'function. '
'A value '
'of 0 '
'means '
'the '
'flow '
'starts '
'with '
'inflow_vel '
'= '
'u_ref, '
'values '
'> 0 '
'mean '
'the '
'flow '
'starts '
'at rest '
'and '
'smoothly '
'increases '
'until '
'time = '
'time_varying_inflow_window, '
'where '
'inflow_vel '
'= '
'u_ref.',
'units': 'second'},
'rho': {'default': 1.0,
'type': 'number',
'description': 'The density of the fluid.',
'units': 'kg/meter^3'},
'wind_direction': {'default': 270.0,
'minimum': 0.0,
'maximum': 360.0,
'type': 'number',
'description': 'The direction of '
'the wind in '
'degrees. 0 '
'indicates a wind '
'blowing from North '
'to South, 90 '
'degrees from East '
'to West, 180 from '
'South to North, and '
'270 (default) from '
'West to East.',
'units': 'degrees'},
'nu': {'default': 1.8e-05,
'minimum': 1e-06,
'type': 'number',
'description': 'The kinematic viscosity of the '
'fluid.',
'units': 'meter^s/second'},
'g': {'default': 9.81,
'minimum': 0.0,
'maximum': 100.0,
'type': 'number',
'description': 'Gravitational acceleration.',
'units': 'meter/second^2'},
'beta': {'default': 0.00333,
'minimum': 1e-06,
'type': 'number',
'description': 'The thermal expansion '
'coefficient of the fluid.',
'units': '1/Kelvin'},
'alpha': {'default': 2.25e-05,
'minimum': 1e-06,
'type': 'number',
'description': 'The thermal diffusivity of '
'the fluid.',
'units': 'meter^2/s'},
'dpdx': {'default': 0.0,
'minimum': 0.0,
'type': 'number',
'description': 'The constant pressure '
'gradient to use to accelerate '
'the flow.',
'units': 'Pa/m'},
'turbulence_model': {'default': None,
'type': ['string', 'null'],
'description': 'The turbulence '
'model to use in '
'the fluid solver.',
'enum': [None,
'smagorinsky',
'wale']},
'c_s': {'default': 0.17,
'minimum': 0.0,
'type': 'number',
'description': 'The Smagorinsky coefficient.'},
'c_w': {'default': 0.5,
'minimum': 0.0,
'type': 'number',
'description': 'The WALE coefficient.'},
'bc_y_min': {'default': 'noslip',
'type': 'string',
'description': 'The type of boundary to '
'set on the y_min wall.',
'enum': ['slip', 'noslip']},
'bc_y_max': {'default': 'noslip',
'type': 'string',
'description': 'The type of boundary to '
'set on the y_max wall.',
'enum': ['slip', 'noslip']},
'bc_z_min': {'default': 'noslip',
'type': 'string',
'description': 'The type of boundary to '
'set on the z_min wall.',
'enum': ['slip', 'noslip']},
'bc_z_max': {'default': 'noslip',
'type': 'string',
'description': 'The type of boundary to '
'set on the z_max wall.',
'enum': ['slip', 'noslip']},
'periodic': {'default': False,
'type': 'boolean',
'description': 'Control whether periodic '
'boundary conditions are '
'set on the y_min/y_max '
'walls.'},
'warm_up_time': {'default': 0.0,
'type': 'number',
'desciption': 'The amount of time, in '
'seconds, to solve the '
'fluid solution for '
'before un-freezing the '
'structure and '
'beginning to solve the '
'FSI in a coupled '
'manner. Warming up the '
'fluid for e.g., 0.5 '
'seconds helps '
'establish a more '
'appropriate fluid '
'solution around the '
'panels and can improve '
'stability by avoiding '
'a sudden shock '
'associated with a bad '
'initial condition at '
't=0.'},
'T_ambient': {'default': 300.0,
'minimum': 1.0,
'maximum': 500.0,
'type': 'number',
'description': 'The ambient temperature '
'of the fluid.',
'units': 'Kelvin'},
'T_bottom': {'default': 320.0,
'minimum': 1.0,
'maximum': 500.0,
'type': 'number',
'description': 'The ground temperature.',
'units': 'Kelvin'},
'T0_panel': {'default': 320.0,
'minimum': 1.0,
'maximum': 500.0,
'type': 'number',
'description': 'The initial PV panel '
'temperature.',
'units': 'Kelvin'}}}

On instance['fluid']:
{'time_varying_inflow_bc': False,
'u_ref': 2.0,
'rho': 1.0,
'nu': 1.8e-05,
'turbulence_model': 'smagorinsky',
'bc_y_max': 'slip',
'bc_y_min': 'slip',
'bc_z_max': 'slip',
'bc_z_min': 'noslip',
'wind_direction': 270}

For information, while installing PVade, I installed the main version of FEniCS instead of the 0.6.0 in the 'environment.yaml' (the version 0.6.0 lead to errors).

Could you help me with solving this issue ?

Kind regards,
Adrien Scemama

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions