Skip to content

Commit

Permalink
update troubleshoot in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehrensdeluna committed Dec 19, 2024
1 parent f77b11b commit fdd5ab5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ Verify if correct package versions were installed

conda list wisdem # (check if wisdem version equals 3.13.0 otherwise uninstall and revert)
pip uninstall wisdem
pip install wisdem==3.13.0
The same should be done for rosco (2.9.2) scipy (1.13.0) and openfast (3.5.2)
pip install wisdem==3.16.4

The same should be done for rosco (2.9.4), scipy (1.13.0), openfast (3.5.2), openmdao (3.35.0)
10 changes: 5 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ dependencies:
- jsonmerge
- mat4py
- nlopt
- openfast=3.5.2
- openraft>=1.2.4
- openfast==3.5.2
- openraft==1.3.1
- osqp
- pcrunch
- pip
- pyhams>=1.3
- pyhams==1.3.0
#- pyoptsparse
- rosco>=2.9.2
- rosco==2.9.4
- smt
- wisdem>=3.16.4
- wisdem==3.16.4
- pip:
- dash-bootstrap-components
- dash-mantine-components
Expand Down
27 changes: 21 additions & 6 deletions weis/aeroelasticse/openmdao_qblade.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
import base64


_encoded_version = 'MC4wLjFfcHJlLXJlbGVhc2U='
_encoded_version = 'MS4wLjA='
__version__ = base64.b64decode(_encoded_version).decode('utf-8')

logger = logging.getLogger("wisdem/weis")
Expand Down Expand Up @@ -401,10 +401,12 @@ def setup(self):
self.add_output('damage_monopile_base', val=0.0, desc="Miner's rule cumulative damage at monopile base")

# iteration counter used as model name appendix
self.qb_inumber = -1
self.qb_inumber = 0

def compute(self, inputs, outputs, discrete_inputs, discrete_ouputs=None):
print(f"############### The WEIS-QBlade component with version number: {__version__} is called ###############")
print("############################################################")
print(f"The WEIS-QBlade component with version number: {__version__} is called")
print("############################################################")

modopt = self.options['modeling_options']
sys.stdout.flush()
Expand Down Expand Up @@ -1359,6 +1361,10 @@ def output_channels(self):
channels_out += [f"X_l Mom. SUB_member_{member-1} pos {rel_member_pos:.3f} [Nm]"]
channels_out += [f"Y_l Mom. SUB_member_{member-1} pos {rel_member_pos:.3f} [Nm]"]
channels_out += [f"Z_l Mom. SUB_member_{member-1} pos {rel_member_pos:.3f} [Nm]"]

# Add user defined channels from modeling_options
if self.qb_vt['QSim']['ADDCHANNELS']:
channels_out += self.qb_vt['QSim']['ADDCHANNELS']
else:
logger.warning("NOSTRUCTURE is set to True, Only channels and hence DVs, constraints and merit figures that don't depend on CHRONO are available")
channels_out = ["Time [s]"]
Expand Down Expand Up @@ -1426,10 +1432,19 @@ def write_QBLADE(self, qb_vt, inputs, discrete_inputs):
writer.execute()

if modopt['General']['qblade_configuration']['store_iterations']:
self.qb_inumber += 1
writer.QBLADE_runDirectory = self.QBLADE_runDirectory + '/model_iterations'
writer.QBLADE_namingOut = self.QBLADE_namingOut + '_it_' + str(self.qb_inumber).zfill(3)
writer.QBLADE_runDirectory = f"{self.QBLADE_runDirectory}/model_iterations"
iteration = f"_it_{str(self.qb_inumber).zfill(3)}"

if cases > 1:
case = f"_case_{idx}"
else:
case = ""

writer.QBLADE_namingOut = f"{self.QBLADE_namingOut}{iteration}{case}"

writer.execute()

self.qb_inumber += 1 # update iteration counter

def init_QBlade_model(self):
modopt = self.options['modeling_options']
Expand Down
7 changes: 6 additions & 1 deletion weis/inputs/modeling_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@ properties:
type: number
default: 100.0
description: set the number of Eigenmodes and Eigenvalues that will be stored
ADDCHANNELS:
type: array
default: []
description: Option to add arbitrary QBlade channels by the user. The channels need to match the name of the QBlade channel exactly - including the unit, e.g. ('Azimuthal Position Blade 1 [deg]')
items:
type: string
Aero: &qbaero
type: object
default: {}
Expand Down Expand Up @@ -1524,7 +1530,6 @@ properties:
type: integer
default: 0
description: number of subsensors. Only modify if necessary as this is filled automatically depending on the number of flexible members!

QTurbSim: &qbturbsim
type: object
default: {}
Expand Down

0 comments on commit fdd5ab5

Please sign in to comment.