|
[Sponsors] |
May 8, 2019, 17:33 |
Solve algebraic equation for field
|
#1 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
I would like to add an equation like the following to my solver:
is a 3x3 matrix, and are 3-dim vectors. All are fields (volVectorField, volTensorField), so are functions of the location (cells). Does a build-in method exists in OpenFOAM to solve such an equation (actually solving this equation for all cells)? Thank you for any help. |
|
May 12, 2019, 09:50 |
|
#3 |
Senior Member
|
See https://www.linkedin.com/pulse/openf...menico-lahaye/ and references cited.
Kind wishes, Domenico Lahaye. |
|
July 9, 2019, 14:47 |
|
#5 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Dear Joachim,
Would you give some elaboration on what the type of vector and matrix is? I have a similar problem in which I have defined the matrix of coefficient as Code:
scalarSquareMatrix A(3, 3, 0); Code:
scalarDiagonalMatrix Coeff(3, 0); scalarDiagonalMatrix xx(3, 0); Code:
xx = Coeff/A; Syavash |
|
July 9, 2019, 18:21 |
|
#6 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
This is the principle implementation I use:
Code:
volVectorField rightSide ( something ); volTensorField leftSide ( I ); volVectorField result = inv(leftSide) & rightSide; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 21:43 |
Domain Reference Pressure and mass flow inlet boundary | AdidaKK | CFX | 75 | August 20, 2018 05:37 |
Problem with Velocity Poisson Equation and Vector Potential Poisson Equation | mykkujinu2201 | Main CFD Forum | 1 | August 12, 2017 13:15 |
error message | cuteapathy | CFX | 14 | March 20, 2012 06:45 |
solve equation | michaelsmit | OpenFOAM Running, Solving & CFD | 4 | March 24, 2011 05:35 |