-
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.
Add dedicated classes for each type of border condition
- Loading branch information
1 parent
79d5663
commit ead02c0
Showing
8 changed files
with
146 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package by.andd3dfx.math.pde; | ||
|
||
/** | ||
* Marker interface for border condition | ||
*/ | ||
public interface BorderCondition { | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/by/andd3dfx/math/pde/BorderConditionType1.java
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,17 @@ | ||
package by.andd3dfx.math.pde; | ||
|
||
/** | ||
* Params for border condition type 1 | ||
*/ | ||
public class BorderConditionType1 implements BorderCondition { | ||
|
||
/** | ||
* Border condition U(t) | ||
* | ||
* @param t time | ||
* @return U value in asked time moment on this border | ||
*/ | ||
public double gU(double t) { | ||
return 0; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/by/andd3dfx/math/pde/BorderConditionType2.java
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,17 @@ | ||
package by.andd3dfx.math.pde; | ||
|
||
/** | ||
* Params for border condition type 2 | ||
*/ | ||
public class BorderConditionType2 implements BorderCondition { | ||
|
||
/** | ||
* Border condition dU_dt(t) | ||
* | ||
* @param t time | ||
* @return dU_dt value in asked time moment on this border | ||
*/ | ||
public double gdU_dx(double t) { | ||
return 0; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/by/andd3dfx/math/pde/BorderConditionType3.java
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,24 @@ | ||
package by.andd3dfx.math.pde; | ||
|
||
/** | ||
* Params for border condition type 3 | ||
*/ | ||
public class BorderConditionType3 implements BorderCondition { | ||
|
||
/** | ||
* TODO add description | ||
* @param t time | ||
* @return | ||
*/ | ||
public double gTheta(double t) { | ||
return 0; | ||
} | ||
|
||
/** | ||
* TODO add description | ||
* @return | ||
*/ | ||
public double gH() { | ||
return 0; | ||
} | ||
} |
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
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
Oops, something went wrong.