generated from rl-institut/super-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c346880
commit ac0e3ef
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .source import SimpleSource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from dataclasses import field | ||
from typing import Sequence, Union | ||
|
||
from oemof.solph.buses import Bus | ||
from oemof.solph.components import Source | ||
from oemof.solph.flows import Flow | ||
|
||
from oemof.tabular._facade import Facade, dataclass_facade | ||
|
||
|
||
@dataclass_facade | ||
class SimpleSource(Source, Facade): | ||
r"""Volatile element with one output. This class can be used to model | ||
Sun when connected to a converter with adequate conversion factors | ||
Parameters | ||
---------- | ||
bus: oemof.solph.Bus | ||
An oemof bus instance where the generator is connected to | ||
""" | ||
|
||
bus: Bus | ||
|
||
carrier: str = "" | ||
|
||
tech: str = "" | ||
|
||
def build_solph_components(self): | ||
""" """ | ||
|
||
self.outputs.update({self.bus: Flow()}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters